stzhao commited on
Commit
f4e23f7
·
verified ·
1 Parent(s): 7eeb972

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="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")
 
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")