Update app.py
Browse files
app.py
CHANGED
|
@@ -188,11 +188,11 @@ def check_gpu():
|
|
| 188 |
|
| 189 |
|
| 190 |
if __name__ == "__main__":
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
|
| 197 |
demo = gr.Blocks()
|
| 198 |
|
|
|
|
| 188 |
|
| 189 |
|
| 190 |
if __name__ == "__main__":
|
| 191 |
+
try:
|
| 192 |
+
init()
|
| 193 |
+
except Exception as e:
|
| 194 |
+
print(e)
|
| 195 |
+
print("Failed to initialize the demo. Please try again later.")
|
| 196 |
|
| 197 |
demo = gr.Blocks()
|
| 198 |
|