Spaces:
Sleeping
Sleeping
Removed tmp directory os var setting and added queue() to demo launch
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ import subprocess
|
|
24 |
from subprocess import call
|
25 |
import shlex
|
26 |
import shutil
|
27 |
-
os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
|
28 |
cwd = os.getcwd()
|
29 |
# Suppress warnings to avoid overflowing the log.
|
30 |
import warnings
|
@@ -490,4 +490,4 @@ with gr.Blocks(title="CountGD: Multi-Modal Open-World Counting", theme="soft", h
|
|
490 |
clear_btn_main.add([input_image_main, input_text_main, exemplar_image_main, detected_instances_main, pred_count_main])
|
491 |
|
492 |
|
493 |
-
demo.launch(allowed_paths=['back-icon.jpg', 'paste-icon.jpg', 'upload-icon.jpg', 'button-legend.jpg'])
|
|
|
24 |
from subprocess import call
|
25 |
import shlex
|
26 |
import shutil
|
27 |
+
#os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
|
28 |
cwd = os.getcwd()
|
29 |
# Suppress warnings to avoid overflowing the log.
|
30 |
import warnings
|
|
|
490 |
clear_btn_main.add([input_image_main, input_text_main, exemplar_image_main, detected_instances_main, pred_count_main])
|
491 |
|
492 |
|
493 |
+
demo.queue().launch(allowed_paths=['back-icon.jpg', 'paste-icon.jpg', 'upload-icon.jpg', 'button-legend.jpg'])
|