Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def gpt_inference(base_url, model, openai_key, prompt):
|
|
| 57 |
|
| 58 |
iface = gr.Interface(
|
| 59 |
fn=gpt_inference,
|
| 60 |
-
inputs=["text", gr.inputs.Dropdown(choices=["
|
| 61 |
outputs=gr.Image(),
|
| 62 |
input_labels=["Base URL", "Model", "OpenAI Key","Prompt"]
|
| 63 |
)
|
|
|
|
| 57 |
|
| 58 |
iface = gr.Interface(
|
| 59 |
fn=gpt_inference,
|
| 60 |
+
inputs=["text", gr.inputs.Dropdown(choices=["gpt-3.5-turbo", "gpt-4"], label="Model"), "text", "text"],
|
| 61 |
outputs=gr.Image(),
|
| 62 |
input_labels=["Base URL", "Model", "OpenAI Key","Prompt"]
|
| 63 |
)
|