Spaces:
Paused
Paused
Long Hoang commited on
Commit ·
8faa66b
1
Parent(s): 20e1954
fix dependencies
Browse files- app.py +9 -1
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -9,7 +9,15 @@ import spaces
|
|
| 9 |
import requests
|
| 10 |
from typing import Optional
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
import trimesh
|
| 14 |
from plyfile import PlyData
|
| 15 |
|
|
|
|
| 9 |
import requests
|
| 10 |
from typing import Optional
|
| 11 |
|
| 12 |
+
# --- FIX: make gradio compatible by downgrading huggingface_hub -----------
|
| 13 |
+
# Gradio 5.0.1 requires huggingface_hub<1.0.0 due to HfFolder import
|
| 14 |
+
subprocess.run(
|
| 15 |
+
shlex.split("pip install 'huggingface_hub<1.0.0'"),
|
| 16 |
+
check=False,
|
| 17 |
+
)
|
| 18 |
+
# --------------------------------------------------------------------------
|
| 19 |
+
|
| 20 |
+
import gradio as gr # import AFTER the pip install above
|
| 21 |
import trimesh
|
| 22 |
from plyfile import PlyData
|
| 23 |
|
requirements.txt
CHANGED
|
@@ -11,7 +11,6 @@ einops
|
|
| 11 |
trimesh
|
| 12 |
tensorboard
|
| 13 |
pyglet<2
|
| 14 |
-
huggingface-hub[torch]>=0.22
|
| 15 |
requests>=2.28.0
|
| 16 |
plyfile
|
| 17 |
imageio[ffmpeg]
|
|
|
|
| 11 |
trimesh
|
| 12 |
tensorboard
|
| 13 |
pyglet<2
|
|
|
|
| 14 |
requests>=2.28.0
|
| 15 |
plyfile
|
| 16 |
imageio[ffmpeg]
|