Omar Solano commited on
Commit
184e7e1
1 Parent(s): e84f436

change args order

Browse files
Files changed (1) hide show
  1. gradio_anthropic.py +3 -2
gradio_anthropic.py CHANGED
@@ -16,12 +16,12 @@ logging.getLogger("httpx").setLevel(logging.WARNING)
16
  def generate_completion(
17
  input,
18
  history,
19
- duplicate,
20
  api_key,
21
  model,
22
  system_prompt,
23
  temperature,
24
  max_tokens,
 
25
  ):
26
  if os.getenv("ANTHROPIC_API_KEY"):
27
  api_key = os.getenv("ANTHROPIC_API_KEY")
@@ -87,14 +87,15 @@ duplicate = gr.DuplicateButton(variant="primary")
87
  demo = gr.ChatInterface(
88
  fn=generate_completion,
89
  additional_inputs=[
90
- duplicate,
91
  api_key,
92
  model,
93
  system_prompt,
94
  temperature,
95
  max_tokens,
 
96
  ],
97
  description="Claude Chatbot, Duplicate space and add your own API key in the 'additional inputs' section",
 
98
  )
99
 
100
  if __name__ == "__main__":
 
16
  def generate_completion(
17
  input,
18
  history,
 
19
  api_key,
20
  model,
21
  system_prompt,
22
  temperature,
23
  max_tokens,
24
+ duplicate,
25
  ):
26
  if os.getenv("ANTHROPIC_API_KEY"):
27
  api_key = os.getenv("ANTHROPIC_API_KEY")
 
87
  demo = gr.ChatInterface(
88
  fn=generate_completion,
89
  additional_inputs=[
 
90
  api_key,
91
  model,
92
  system_prompt,
93
  temperature,
94
  max_tokens,
95
+ duplicate,
96
  ],
97
  description="Claude Chatbot, Duplicate space and add your own API key in the 'additional inputs' section",
98
+ fill_height=True,
99
  )
100
 
101
  if __name__ == "__main__":