Update app.py
Browse files
app.py
CHANGED
@@ -448,8 +448,8 @@ def create_demo():
|
|
448 |
choices=["gpt-4.1"],
|
449 |
value="gpt-4.1"
|
450 |
)
|
451 |
-
|
452 |
-
|
453 |
image_input = gr.Image(label="Upload Image", type="pil")
|
454 |
question = gr.Textbox(label="Question", placeholder="Ask a question about the image...")
|
455 |
submit_btn = gr.Button("Submit")
|
|
|
448 |
choices=["gpt-4.1"],
|
449 |
value="gpt-4.1"
|
450 |
)
|
451 |
+
api_key = gr.Textbox(label="OpenAI API Key", type="password", value="sk-xxx")
|
452 |
+
base_url = gr.Textbox(label="Base URL (optional)", value="xxx")
|
453 |
image_input = gr.Image(label="Upload Image", type="pil")
|
454 |
question = gr.Textbox(label="Question", placeholder="Ask a question about the image...")
|
455 |
submit_btn = gr.Button("Submit")
|