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 |
-
api_key = gr.Textbox(label="OpenAI API Key", type="password", value="
|
452 |
-
base_url = gr.Textbox(label="Base URL (optional)", value="
|
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 (optional)", type="password", value=os.getenv("AZURE_OPENAI_API_KEY"))
|
452 |
+
base_url = gr.Textbox(label="Base URL (optional)", value=os.getenv("AZURE_OPENAI_ENDPOINT"))
|
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")
|