youngtsai commited on
Commit
ddab20c
·
1 Parent(s): 53575d1

with gr.Row():

Browse files

use_key = gr.Checkbox(label="Use OpenAI Key")
chat_model = gr.Dropdown(choices=available_models, value="gpt-3.5-turbo", allow_custom_value=True)
openai_key

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -82,9 +82,9 @@ with gr.Blocks(theme=theme) as demo:
82
  topic_input = gr.Textbox(label="主題", placeholder="輸入主題...")
83
 
84
  with gr.Row():
85
- use_key = gr.Checkbox(label="Use OpenAI Key")
86
- chat_model = gr.Dropdown(choices=available_models, value="gpt-3.5-turbo", allow_custom_value=True)
87
- openai_key = gr.Textbox(label="Enter OPENAI API Key", placeholder="Example: sk-AJDKakdAJD...")
88
 
89
  with gr.Row():
90
  with gr.Column(scale=2):
 
82
  topic_input = gr.Textbox(label="主題", placeholder="輸入主題...")
83
 
84
  with gr.Row():
85
+ use_key = gr.Checkbox(label="Use OpenAI Key")
86
+ chat_model = gr.Dropdown(choices=available_models, value="gpt-3.5-turbo", allow_custom_value=True)
87
+ openai_key = gr.Textbox(label="Enter OPENAI API Key", placeholder="Example: sk-AJDKakdAJD...")
88
 
89
  with gr.Row():
90
  with gr.Column(scale=2):