Spaces:
Sleeping
Sleeping
Fix Gradio version (4.44.0) and configure server for HF Spaces
Browse files- app.py +1 -1
- requirements.txt +6 -9
app.py
CHANGED
|
@@ -221,4 +221,4 @@ with gr.Blocks(
|
|
| 221 |
|
| 222 |
# Launch
|
| 223 |
if __name__ == "__main__":
|
| 224 |
-
demo.launch()
|
|
|
|
| 221 |
|
| 222 |
# Launch
|
| 223 |
if __name__ == "__main__":
|
| 224 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
requirements.txt
CHANGED
|
@@ -1,11 +1,8 @@
|
|
| 1 |
-
# Requirements untuk
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
torchvision==0.21.0
|
| 8 |
-
Pillow==11.1.0
|
| 9 |
-
numpy==2.2.2
|
| 10 |
huggingface_hub
|
| 11 |
requests
|
|
|
|
| 1 |
+
# Requirements untuk Gradio App
|
| 2 |
+
gradio==4.44.0
|
| 3 |
+
torch==2.1.0
|
| 4 |
+
torchvision==0.16.0
|
| 5 |
+
Pillow>=10.0.0
|
| 6 |
+
numpy>=1.24.0
|
|
|
|
|
|
|
|
|
|
| 7 |
huggingface_hub
|
| 8 |
requests
|