Update app.py
Browse files
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=[
|
67 |
outputs=gr.Image(),
|
68 |
-
|
|
|
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()
|