Spaces:
Runtime error
Runtime error
remove share=True as we don't need it and add `import os`
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
### 1. Imports and class names setup ###
|
| 2 |
from model import create_vitB16_model
|
| 3 |
import torch
|
|
|
|
| 4 |
from typing import Tuple, Dict
|
| 5 |
from timeit import default_timer as timer
|
| 6 |
import gradio as gr
|
|
@@ -62,5 +63,4 @@ demo = gr.Interface(fn=predict,
|
|
| 62 |
article=article)
|
| 63 |
|
| 64 |
# Launch the demo!
|
| 65 |
-
demo.launch(debug=False
|
| 66 |
-
share=True) # generate a publically shareable URL
|
|
|
|
| 1 |
### 1. Imports and class names setup ###
|
| 2 |
from model import create_vitB16_model
|
| 3 |
import torch
|
| 4 |
+
import os
|
| 5 |
from typing import Tuple, Dict
|
| 6 |
from timeit import default_timer as timer
|
| 7 |
import gradio as gr
|
|
|
|
| 63 |
article=article)
|
| 64 |
|
| 65 |
# Launch the demo!
|
| 66 |
+
demo.launch(debug=False) # print errors locally?
|
|
|