Spaces:
Sleeping
Sleeping
minor fixes
Browse files
app.py
CHANGED
|
@@ -227,23 +227,25 @@ with gr.Blocks(title="TurboNerd Agent🤓") as demo:
|
|
| 227 |
|
| 228 |
with gr.Row():
|
| 229 |
with gr.Column(scale=4):
|
| 230 |
-
chatbot = gr.Chatbot(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
with gr.Row():
|
| 232 |
question_input = gr.Textbox(
|
| 233 |
label="Ask a question",
|
| 234 |
placeholder="Type your question here...",
|
| 235 |
-
lines=
|
| 236 |
-
max_lines=
|
| 237 |
container=True,
|
| 238 |
-
scale=3
|
| 239 |
-
height=150
|
| 240 |
)
|
| 241 |
file_upload = gr.File(
|
| 242 |
label="Upload Files",
|
| 243 |
file_types=ALLOWED_FILE_EXTENSIONS,
|
| 244 |
file_count="multiple",
|
| 245 |
-
scale=1
|
| 246 |
-
height=150
|
| 247 |
)
|
| 248 |
with gr.Row():
|
| 249 |
submit_btn = gr.Button("Send", variant="primary")
|
|
|
|
| 227 |
|
| 228 |
with gr.Row():
|
| 229 |
with gr.Column(scale=4):
|
| 230 |
+
chatbot = gr.Chatbot(
|
| 231 |
+
label="Conversation",
|
| 232 |
+
height=300,
|
| 233 |
+
type="messages"
|
| 234 |
+
)
|
| 235 |
with gr.Row():
|
| 236 |
question_input = gr.Textbox(
|
| 237 |
label="Ask a question",
|
| 238 |
placeholder="Type your question here...",
|
| 239 |
+
lines=6,
|
| 240 |
+
max_lines=6,
|
| 241 |
container=True,
|
| 242 |
+
scale=3
|
|
|
|
| 243 |
)
|
| 244 |
file_upload = gr.File(
|
| 245 |
label="Upload Files",
|
| 246 |
file_types=ALLOWED_FILE_EXTENSIONS,
|
| 247 |
file_count="multiple",
|
| 248 |
+
scale=1
|
|
|
|
| 249 |
)
|
| 250 |
with gr.Row():
|
| 251 |
submit_btn = gr.Button("Send", variant="primary")
|