Spaces:
Runtime error
Runtime error
Commit
·
0cf4514
1
Parent(s):
d05d93d
Update app.py
Browse files
app.py
CHANGED
@@ -366,14 +366,16 @@ def func_upload_file(files, chat_history):
|
|
366 |
yield chat_history
|
367 |
|
368 |
with gr.Blocks() as demo:
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
|
|
|
|
377 |
|
378 |
# demo = gr.Interface(
|
379 |
# 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 |
+
with gr.Box()
|
371 |
+
main = gr.ChatInterface(
|
372 |
+
chathmi2,
|
373 |
+
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
374 |
+
description= "v0.3: Powered by MECH Core Team",
|
375 |
+
|
376 |
+
)
|
377 |
+
upload_button = gr.UploadButton("Upload File", file_count="multiple")
|
378 |
+
upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
379 |
|
380 |
# demo = gr.Interface(
|
381 |
# chathmi,
|