Spaces:
Running
on
Zero
Running
on
Zero
Upload 2 files
Browse files- app.py +1 -1
- requirements.txt +2 -2
app.py
CHANGED
@@ -595,4 +595,4 @@ if __name__ == "__main__":
|
|
595 |
print("Warning: HF_TOKEN environment variable not set. Downloads from private repositories may fail.")
|
596 |
# Initialize model on startup to avoid delay on first prediction
|
597 |
# initialize_model() # Removed startup initialization
|
598 |
-
demo.launch()
|
|
|
595 |
print("Warning: HF_TOKEN environment variable not set. Downloads from private repositories may fail.")
|
596 |
# Initialize model on startup to avoid delay on first prediction
|
597 |
# initialize_model() # Removed startup initialization
|
598 |
+
demo.launch(share=True)
|
requirements.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
torch
|
3 |
torchvision
|
4 |
torchaudio
|
5 |
-
onnxruntime-gpu==1.19.0 #
|
6 |
-
numpy # Pin NumPy
|
7 |
Pillow
|
8 |
matplotlib
|
9 |
requests
|
|
|
2 |
torch
|
3 |
torchvision
|
4 |
torchaudio
|
5 |
+
onnxruntime-gpu==1.19.0 # CUDA 12.x / cuDNN 9.x compatible
|
6 |
+
numpy<2.0 # Pin NumPy to 1.x for compatibility
|
7 |
Pillow
|
8 |
matplotlib
|
9 |
requests
|