Spaces:
Runtime error
Runtime error
with gr.Row():
Browse files
app.py
CHANGED
|
@@ -82,14 +82,13 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 82 |
topic_input = gr.Textbox(label="主題", placeholder="輸入主題...")
|
| 83 |
|
| 84 |
with gr.Row():
|
| 85 |
-
with gr.Column(scale=2):
|
| 86 |
-
chatbot = gr.Chatbot(label="ChatGPT Dialog")
|
| 87 |
-
|
| 88 |
-
with gr.Row():
|
| 89 |
use_key = gr.Checkbox(label="Use OpenAI Key")
|
| 90 |
chat_model = gr.Dropdown(choices=available_models, value="gpt-3.5-turbo", allow_custom_value=True)
|
| 91 |
openai_key = gr.Textbox(label="Enter OPENAI API Key", placeholder="Example: sk-AJDKakdAJD...")
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
| 93 |
msg = gr.Textbox(label="Chat with ChatGPT", placeholder="Press <Enter> to submit")
|
| 94 |
|
| 95 |
with gr.Column(scale=1):
|
|
|
|
| 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):
|
| 91 |
+
chatbot = gr.Chatbot(label="ChatGPT Dialog")
|
| 92 |
msg = gr.Textbox(label="Chat with ChatGPT", placeholder="Press <Enter> to submit")
|
| 93 |
|
| 94 |
with gr.Column(scale=1):
|