Spaces:
Runtime error
Runtime error
Commit
·
835be01
1
Parent(s):
a266cc6
Update app.py
Browse filesupdate UI setting
app.py
CHANGED
@@ -366,16 +366,15 @@ def func_upload_file(files, chat_history):
|
|
366 |
yield chat_history
|
367 |
|
368 |
with gr.Blocks() as demo:
|
369 |
-
gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
379 |
|
380 |
# demo = gr.Interface(
|
381 |
# chathmi,
|
|
|
366 |
yield chat_history
|
367 |
|
368 |
with gr.Blocks() as demo:
|
369 |
+
# gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
|
370 |
+
main = gr.ChatInterface(
|
371 |
+
chathmi2,
|
372 |
+
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
373 |
+
description= "v0.3: Powered by MECH Core Team",
|
374 |
+
height = 300,
|
375 |
+
)
|
376 |
+
upload_button = gr.UploadButton("Upload File", file_count="multiple")
|
377 |
+
upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
|
|
378 |
|
379 |
# demo = gr.Interface(
|
380 |
# chathmi,
|