Zihao Wang commited on
Commit
67b35cd
·
1 Parent(s): 36a72e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -449,9 +449,16 @@ with gr.Blocks(title = page_title) as demo:
449
  )
450
  with gr.Row():
451
  model_radio = gr.Radio(["gpt-3.5-turbo", "gpt-4", "GPT-4-turbo"], elem_id="model_radio", value="gpt-3.5-turbo",
452
- label='GPT model: ', show_label=True,interactive=True, visible=True)
453
- openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
454
- show_label=False, lines=1, type='password')
 
 
 
 
 
 
 
455
 
456
  openai_api_key_textbox.change(set_openai_api_key,
457
  inputs=[openai_api_key_textbox],
 
449
  )
450
  with gr.Row():
451
  model_radio = gr.Radio(["gpt-3.5-turbo", "gpt-4", "GPT-4-turbo"], elem_id="model_radio", value="gpt-3.5-turbo",
452
+ label='GPT model',
453
+ show_label=True,
454
+ interactive=True,
455
+ visible=True)
456
+ openai_api_key_textbox = gr.Textbox(
457
+ label='OpenAI API key',
458
+ placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
459
+ show_label=False,
460
+ lines=1,
461
+ type='password')
462
 
463
  openai_api_key_textbox.change(set_openai_api_key,
464
  inputs=[openai_api_key_textbox],