Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,7 @@ with gr.Blocks() as demo:
|
|
255 |
|
256 |
with gr.Row():
|
257 |
with gr.Column(scale=5):
|
258 |
-
textbox = gr.Textbox(placeholder="π€ Enter your prompt (up to 200 characters)", lines=2, max_lines=5)
|
259 |
submit_btn = gr.Button(value="Submit")
|
260 |
|
261 |
with gr.Row():
|
@@ -279,14 +279,12 @@ with gr.Blocks() as demo:
|
|
279 |
gr.Markdown("## π£οΈ Chat directly with a model!")
|
280 |
|
281 |
with gr.Row():
|
282 |
-
|
283 |
-
|
284 |
-
with gr.Column(scale=1):
|
285 |
-
model_dropdown = gr.Dropdown(choices=chatbots, label="π€ Select a model")
|
286 |
|
287 |
with gr.Row():
|
288 |
with gr.Column(scale=5):
|
289 |
-
direct_textbox = gr.Textbox(placeholder="π Enter your message", lines=2, max_lines=5)
|
290 |
direct_submit_btn = gr.Button(value="Submit")
|
291 |
|
292 |
with gr.Row():
|
|
|
255 |
|
256 |
with gr.Row():
|
257 |
with gr.Column(scale=5):
|
258 |
+
textbox = gr.Textbox(placeholder="π€ Enter your prompt (up to 200 characters)", lines=2, max_lines=5, submit_key="enter")
|
259 |
submit_btn = gr.Button(value="Submit")
|
260 |
|
261 |
with gr.Row():
|
|
|
279 |
gr.Markdown("## π£οΈ Chat directly with a model!")
|
280 |
|
281 |
with gr.Row():
|
282 |
+
direct_chatbot = gr.Chatbot(label="π¬ Direct Chat").style(height=500)
|
283 |
+
model_dropdown = gr.Dropdown(choices=chatbots, label="π€ Select a model")
|
|
|
|
|
284 |
|
285 |
with gr.Row():
|
286 |
with gr.Column(scale=5):
|
287 |
+
direct_textbox = gr.Textbox(placeholder="π Enter your message", lines=2, max_lines=5, submit_key="enter")
|
288 |
direct_submit_btn = gr.Button(value="Submit")
|
289 |
|
290 |
with gr.Row():
|