Spaces:
Runtime error
Runtime error
Commit
·
6993c4a
1
Parent(s):
4e8d946
correct chotbot display
Browse files
app.py
CHANGED
@@ -334,12 +334,11 @@ def func_upload_file(files):
|
|
334 |
with gr.Blocks() as demo:
|
335 |
main = gr.ChatInterface(
|
336 |
chathmi2,
|
337 |
-
examples=["What is PDP?"],
|
338 |
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
339 |
description= "v0.3: Powered by MECH Core Team",
|
340 |
)
|
341 |
upload_button = gr.UploadButton("Upload File", file_count="multiple")
|
342 |
-
upload_button.upload(func_upload_file, upload_button, main.
|
343 |
|
344 |
# demo = gr.Interface(
|
345 |
# chathmi,
|
|
|
334 |
with gr.Blocks() as demo:
|
335 |
main = gr.ChatInterface(
|
336 |
chathmi2,
|
|
|
337 |
title="STLA BABY - YOUR FRIENDLY GUIDE",
|
338 |
description= "v0.3: Powered by MECH Core Team",
|
339 |
)
|
340 |
upload_button = gr.UploadButton("Upload File", file_count="multiple")
|
341 |
+
upload_button.upload(func_upload_file, upload_button, main.chatbot)
|
342 |
|
343 |
# demo = gr.Interface(
|
344 |
# chathmi,
|