Spaces:
Running
Running
AMontiB
commited on
Commit
·
2d76fb0
1
Parent(s):
639b09a
update
Browse files- app.py +2 -1
- requirements.txt +7 -6
app.py
CHANGED
|
@@ -130,7 +130,8 @@ with demo:
|
|
| 130 |
output_display = gr.Textbox(
|
| 131 |
label="Detection Results",
|
| 132 |
lines=15,
|
| 133 |
-
max_lines=20
|
|
|
|
| 134 |
)
|
| 135 |
|
| 136 |
gr.Markdown("""
|
|
|
|
| 130 |
output_display = gr.Textbox(
|
| 131 |
label="Detection Results",
|
| 132 |
lines=15,
|
| 133 |
+
max_lines=20,
|
| 134 |
+
show_copy_button=True
|
| 135 |
)
|
| 136 |
|
| 137 |
gr.Markdown("""
|
requirements.txt
CHANGED
|
@@ -14,7 +14,7 @@ scikit-image==0.22.0
|
|
| 14 |
scikit-learn==1.5.2
|
| 15 |
|
| 16 |
# MLOps & Infrastructure
|
| 17 |
-
wandb==0.
|
| 18 |
|
| 19 |
# Utilities
|
| 20 |
PyYAML==6.0.2
|
|
@@ -24,8 +24,9 @@ ftfy
|
|
| 24 |
open-clip-torch
|
| 25 |
|
| 26 |
# THE FIX:
|
| 27 |
-
# 1. We
|
| 28 |
-
gradio
|
| 29 |
-
# 2. We pin FastAPI to
|
| 30 |
-
fastapi
|
| 31 |
-
# 3. We
|
|
|
|
|
|
| 14 |
scikit-learn==1.5.2
|
| 15 |
|
| 16 |
# MLOps & Infrastructure
|
| 17 |
+
wandb==0.16.6
|
| 18 |
|
| 19 |
# Utilities
|
| 20 |
PyYAML==6.0.2
|
|
|
|
| 24 |
open-clip-torch
|
| 25 |
|
| 26 |
# THE FIX:
|
| 27 |
+
# 1. We use a stable Gradio 3 version
|
| 28 |
+
gradio==3.50.2
|
| 29 |
+
# 2. We pin FastAPI to be compatible with Pydantic v1
|
| 30 |
+
fastapi<0.100.0
|
| 31 |
+
# 3. We explicitly pin Pydantic v1
|
| 32 |
+
pydantic<2.0
|