Spaces:
Running
on
Zero
Running
on
Zero
handle gpu quota
Browse files
app.py
CHANGED
@@ -995,11 +995,11 @@ def run_fn(
|
|
995 |
|
996 |
except gr.Error as e:
|
997 |
print(e)
|
998 |
-
gr.
|
999 |
if USE_HUGGINGFACE_ZEROGPU:
|
1000 |
spaces.zero.gradio.HTMLError(e.message)
|
1001 |
-
gr.
|
1002 |
-
gr.
|
1003 |
gr.Info("Running out of HuggingFace GPU Quota? Try this demo hosted at UPenn.</br></br> https://ncut-pytorch.readthedocs.io/en/latest/demo/", duration=20)
|
1004 |
|
1005 |
|
|
|
995 |
|
996 |
except gr.Error as e:
|
997 |
print(e)
|
998 |
+
gr.Warning(e.message)
|
999 |
if USE_HUGGINGFACE_ZEROGPU:
|
1000 |
spaces.zero.gradio.HTMLError(e.message)
|
1001 |
+
gr.Warning("Error: " + e.message)
|
1002 |
+
gr.Warning("Error: " + str(e))
|
1003 |
gr.Info("Running out of HuggingFace GPU Quota? Try this demo hosted at UPenn.</br></br> https://ncut-pytorch.readthedocs.io/en/latest/demo/", duration=20)
|
1004 |
|
1005 |
|