dimostzim commited on
Commit
903be3b
·
1 Parent(s): 82b332c

HF Space: CPU-only torch and Python 3.11

Browse files
Files changed (3) hide show
  1. README.md +1 -0
  2. app.py +1 -1
  3. requirements.txt +7 -19
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: green
6
  sdk: gradio
7
  sdk_version: 6.8.0
8
  app_file: app.py
 
9
  pinned: false
10
  license: mit
11
  short_description: miRBind2 web app
 
6
  sdk: gradio
7
  sdk_version: 6.8.0
8
  app_file: app.py
9
+ python_version: 3.11
10
  pinned: false
11
  license: mit
12
  short_description: miRBind2 web app
app.py CHANGED
@@ -1061,7 +1061,7 @@ def main():
1061
 
1062
  app.launch(
1063
  share=False, # Set to True to create public link
1064
- server_name="0.0.0.0", # localhost only
1065
  server_port=7860,
1066
  show_error=True
1067
  )
 
1061
 
1062
  app.launch(
1063
  share=False, # Set to True to create public link
1064
+ server_name="0.0.0.0", # Required for containerized hosting (HF Spaces)
1065
  server_port=7860,
1066
  show_error=True
1067
  )
requirements.txt CHANGED
@@ -1,22 +1,10 @@
1
- # miRBind2 Gradio Interface Requirements
2
-
3
- # Deep Learning
4
- torch>=2.0.0
5
- torchvision>=0.15.0
6
-
7
- # Gradio for web interface
8
  gradio>=4.0.0
9
-
10
- # Data processing
11
- numpy>=1.24.0
12
- pandas>=2.0.0
13
-
14
- # Visualization
15
- matplotlib>=3.7.0
16
- Pillow>=10.0.0
17
-
18
- # Explainability (optional but recommended)
19
  captum>=0.7.0
20
-
21
- # Scientific computing
22
  scikit-learn>=1.3.0
 
1
+ --extra-index-url https://download.pytorch.org/whl/cpu
2
+ torch==2.2.2+cpu
3
+ torchvision==0.17.2+cpu
 
 
 
 
4
  gradio>=4.0.0
5
+ numpy>=1.24,<2.0
6
+ pandas>=2.0
7
+ matplotlib>=3.7
8
+ Pillow>=10.0
 
 
 
 
 
 
9
  captum>=0.7.0
 
 
10
  scikit-learn>=1.3.0