Spaces:
Build error
Build error
Ankur Goyal
commited on
Commit
•
e62060d
1
Parent(s):
42081d7
Disable queue
Browse files
app.py
CHANGED
@@ -2,8 +2,9 @@ import os
|
|
2 |
|
3 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
4 |
|
5 |
-
import functools
|
6 |
from PIL import Image, ImageDraw
|
|
|
|
|
7 |
import gradio as gr
|
8 |
|
9 |
import torch
|
@@ -96,7 +97,7 @@ def process_path(path):
|
|
96 |
gr.update(visible=False, value=None),
|
97 |
)
|
98 |
except Exception:
|
99 |
-
|
100 |
return (
|
101 |
None,
|
102 |
gr.update(visible=False, value=None),
|
@@ -404,4 +405,4 @@ with gr.Blocks(css=CSS) as demo:
|
|
404 |
)
|
405 |
|
406 |
if __name__ == "__main__":
|
407 |
-
demo.launch()
|
|
|
2 |
|
3 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
4 |
|
|
|
5 |
from PIL import Image, ImageDraw
|
6 |
+
import traceback
|
7 |
+
|
8 |
import gradio as gr
|
9 |
|
10 |
import torch
|
|
|
97 |
gr.update(visible=False, value=None),
|
98 |
)
|
99 |
except Exception:
|
100 |
+
traceback.print_exc()
|
101 |
return (
|
102 |
None,
|
103 |
gr.update(visible=False, value=None),
|
|
|
405 |
)
|
406 |
|
407 |
if __name__ == "__main__":
|
408 |
+
demo.launch(enable_queue=False)
|