Spaces:
Runtime error
Runtime error
Commit
·
f7cd739
1
Parent(s):
6993c4a
func_upload_fiile correction
Browse files
app.py
CHANGED
@@ -329,6 +329,7 @@ def func_upload_file(files):
|
|
329 |
file_path = files
|
330 |
print(file_path)
|
331 |
# UpdateDb()
|
|
|
332 |
return("Test Upload")
|
333 |
|
334 |
with gr.Blocks() as demo:
|
@@ -338,7 +339,7 @@ with gr.Blocks() as demo:
|
|
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
|
342 |
|
343 |
# demo = gr.Interface(
|
344 |
# chathmi,
|
|
|
329 |
file_path = files
|
330 |
print(file_path)
|
331 |
# UpdateDb()
|
332 |
+
main.chatbot("Test File Upload")
|
333 |
return("Test Upload")
|
334 |
|
335 |
with gr.Blocks() as demo:
|
|
|
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)
|
343 |
|
344 |
# demo = gr.Interface(
|
345 |
# chathmi,
|