Spaces:
Build error
Build error
Commit ·
2d6ce72
1
Parent(s): 159500c
Fix Gradio version compatibility
Browse files- README.md +1 -1
- app.py +7 -8
- requirements.txt +3 -2
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🔮
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-nc-4.0
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-nc-4.0
|
app.py
CHANGED
|
@@ -154,14 +154,13 @@ with gr.Blocks(
|
|
| 154 |
height=400,
|
| 155 |
)
|
| 156 |
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
)
|
| 165 |
|
| 166 |
submit_btn = gr.Button("🚀 Estimate Normal", variant="primary", size="lg")
|
| 167 |
|
|
|
|
| 154 |
height=400,
|
| 155 |
)
|
| 156 |
|
| 157 |
+
processing_res = gr.Slider(
|
| 158 |
+
minimum=256,
|
| 159 |
+
maximum=1024,
|
| 160 |
+
value=768,
|
| 161 |
+
step=64,
|
| 162 |
+
label="Processing Resolution (higher = better quality but slower)",
|
| 163 |
+
)
|
|
|
|
| 164 |
|
| 165 |
submit_btn = gr.Button("🚀 Estimate Normal", variant="primary", size="lg")
|
| 166 |
|
requirements.txt
CHANGED
|
@@ -17,6 +17,7 @@ numpy>=1.23.0
|
|
| 17 |
# HuggingFace
|
| 18 |
huggingface_hub
|
| 19 |
|
| 20 |
-
# Gradio and Spaces
|
| 21 |
-
gradio
|
|
|
|
| 22 |
spaces
|
|
|
|
| 17 |
# HuggingFace
|
| 18 |
huggingface_hub
|
| 19 |
|
| 20 |
+
# Gradio and Spaces (pinned versions for compatibility)
|
| 21 |
+
gradio==4.44.0
|
| 22 |
+
gradio_client==1.3.0
|
| 23 |
spaces
|