Zihao Wang commited on
Commit
e0163fc
1 Parent(s): 373bfd1
Files changed (1) hide show
  1. app.py +22 -17
app.py CHANGED
@@ -447,22 +447,22 @@ with gr.Blocks(title = page_title) as demo:
447
  interactive=True,
448
  visible=True
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=True,
460
- lines=1,
461
- type='password')
462
 
463
- openai_api_key_textbox.change(set_openai_api_key,
464
- inputs=[openai_api_key_textbox],
465
- outputs=[])
466
 
467
  with gr.Row():
468
  submit_btn = gr.Button(
@@ -495,8 +495,13 @@ with gr.Blocks(title = page_title) as demo:
495
 
496
  examples = gr.Examples(
497
  examples=[
498
- "I went to the supermarket yesterday.",
499
- "Helen is a good swimmer."],
 
 
 
 
 
500
  inputs=[instruction_box]
501
  )
502
 
 
447
  interactive=True,
448
  visible=True
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=True,
460
+ # lines=1,
461
+ # type='password')
462
 
463
+ # openai_api_key_textbox.change(set_openai_api_key,
464
+ # inputs=[openai_api_key_textbox],
465
+ # outputs=[])
466
 
467
  with gr.Row():
468
  submit_btn = gr.Button(
 
495
 
496
  examples = gr.Examples(
497
  examples=[
498
+ # "I went to the supermarket yesterday.",
499
+ # "Helen is a good swimmer."
500
+ "Write a survey of retrieval-augmented generation in Large Language Models.",
501
+ "Introduce Jin-Yong's life and his works.",
502
+ "Summarize the American Civil War according to the timeline."
503
+ "Describe the life and achievements of Marie Curie"
504
+ ],
505
  inputs=[instruction_box]
506
  )
507