Spaces:
Runtime error
Runtime error
with gr.Row():
Browse filesuse_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
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 |
-
|
| 86 |
-
|
| 87 |
-
|
| 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):
|