cella110n commited on
Commit
922e9e4
·
verified ·
1 Parent(s): ca6f95f

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. 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 # または onnxruntime>=1.16.0 (CPUのみの場合)
6
- numpy # Pin NumPy version for onnxruntime compatibility
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