Spaces:
Sleeping
Sleeping
Fix: Remove example images to prevent FileNotFoundError
Browse files
app.py
CHANGED
|
@@ -163,14 +163,7 @@ def create_gradio_interface():
|
|
| 163 |
}
|
| 164 |
"""
|
| 165 |
|
| 166 |
-
#
|
| 167 |
-
examples = [
|
| 168 |
-
["examples/hand_example.jpg"],
|
| 169 |
-
["examples/arm_example.jpg"],
|
| 170 |
-
["examples/face_example.jpg"]
|
| 171 |
-
]
|
| 172 |
-
|
| 173 |
-
# Create interface
|
| 174 |
interface = gr.Interface(
|
| 175 |
fn=gradio_predict,
|
| 176 |
inputs=[
|
|
@@ -218,8 +211,6 @@ def create_gradio_interface():
|
|
| 218 |
### Model Card
|
| 219 |
View the full model details at [HuggingFace Model Hub](https://huggingface.co/EtanHey/hand-sign-detection)
|
| 220 |
""",
|
| 221 |
-
examples=examples if examples else None,
|
| 222 |
-
cache_examples=True,
|
| 223 |
css=custom_css,
|
| 224 |
theme=gr.themes.Soft()
|
| 225 |
)
|
|
|
|
| 163 |
}
|
| 164 |
"""
|
| 165 |
|
| 166 |
+
# Create interface (no examples to avoid file errors)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
interface = gr.Interface(
|
| 168 |
fn=gradio_predict,
|
| 169 |
inputs=[
|
|
|
|
| 211 |
### Model Card
|
| 212 |
View the full model details at [HuggingFace Model Hub](https://huggingface.co/EtanHey/hand-sign-detection)
|
| 213 |
""",
|
|
|
|
|
|
|
| 214 |
css=custom_css,
|
| 215 |
theme=gr.themes.Soft()
|
| 216 |
)
|