Update app.py
Browse files
app.py
CHANGED
@@ -126,16 +126,16 @@ with gr.Blocks() as demo:
|
|
126 |
# with gr.Row():
|
127 |
# upload_button = gr.UploadButton("Click to upload files", file_types=[".pdf", ".csv", ".xlsx", ".txt"], file_count="multiple")
|
128 |
# upload_button.upload(upload_files, upload_button, file_output)
|
129 |
-
with gr.Row(): # type: ignore
|
130 |
-
submit_btn = gr.Button(
|
131 |
-
'Submit',
|
132 |
-
variant='primary'
|
133 |
-
)
|
134 |
with gr.Row(): # type: ignore
|
135 |
clear_btn = gr.Button(
|
136 |
'Clear',
|
137 |
variant="stop"
|
138 |
)
|
|
|
|
|
|
|
|
|
|
|
139 |
txt.submit(add_text, [chatbot, txt], [chatbot, txt]).then(
|
140 |
bot, chatbot, chatbot
|
141 |
)
|
|
|
126 |
# with gr.Row():
|
127 |
# upload_button = gr.UploadButton("Click to upload files", file_types=[".pdf", ".csv", ".xlsx", ".txt"], file_count="multiple")
|
128 |
# upload_button.upload(upload_files, upload_button, file_output)
|
|
|
|
|
|
|
|
|
|
|
129 |
with gr.Row(): # type: ignore
|
130 |
clear_btn = gr.Button(
|
131 |
'Clear',
|
132 |
variant="stop"
|
133 |
)
|
134 |
+
with gr.Row(): # type: ignore
|
135 |
+
submit_btn = gr.Button(
|
136 |
+
'Submit',
|
137 |
+
variant='primary'
|
138 |
+
)
|
139 |
txt.submit(add_text, [chatbot, txt], [chatbot, txt]).then(
|
140 |
bot, chatbot, chatbot
|
141 |
)
|