Spaces:
Build error
Build error
Update run.py
Browse files
run.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def add_file(history, task_history, file):
|
|
|
|
| 4 |
history = history + [((file.name,), None)]
|
| 5 |
task_history = task_history + [((file.name,), None)]
|
| 6 |
print(history)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import time
|
| 3 |
|
| 4 |
def add_file(history, task_history, file):
|
| 5 |
+
time.sleep(10)
|
| 6 |
history = history + [((file.name,), None)]
|
| 7 |
task_history = task_history + [((file.name,), None)]
|
| 8 |
print(history)
|