dlimeng commited on
Commit
269c1cf
·
1 Parent(s): 2c7e0ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -63,8 +63,9 @@ def gpt_inference(base_url, model, openai_key, prompt):
63
 
64
  iface = gr.Interface(
65
  fn=gpt_inference,
66
- inputs=["text", gr.inputs.Dropdown(choices=["gpt-3.5-turbo", "gpt-4"], label="Model"), "text", "text"],
67
  outputs=gr.Image(),
68
- input_labels=["Base URL", "Model", "OpenAI Key","Prompt"]
 
69
  )
70
  iface.launch()
 
63
 
64
  iface = gr.Interface(
65
  fn=gpt_inference,
66
+ inputs=[gr.components.Textbox(), gr.components.Dropdown(choices=["gpt-3.5-turbo", "gpt-4"], label="Model"), gr.components.Textbox(), gr.components.Textbox()],
67
  outputs=gr.Image(),
68
+ labels=["Base URL", "Model", "OpenAI Key","Prompt"]
69
+
70
  )
71
  iface.launch()