Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import onnxruntime as ort
|
3 |
import numpy as np
|
@@ -592,5 +593,5 @@ if __name__ == "__main__":
|
|
592 |
if not os.environ.get("HF_TOKEN"):
|
593 |
print("Warning: HF_TOKEN environment variable not set. Downloads from private repositories may fail.")
|
594 |
# Initialize model on startup to avoid delay on first prediction
|
595 |
-
initialize_model()
|
596 |
demo.launch()
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import onnxruntime as ort
|
4 |
import numpy as np
|
|
|
593 |
if not os.environ.get("HF_TOKEN"):
|
594 |
print("Warning: HF_TOKEN environment variable not set. Downloads from private repositories may fail.")
|
595 |
# Initialize model on startup to avoid delay on first prediction
|
596 |
+
# initialize_model() # Removed startup initialization
|
597 |
demo.launch()
|