AMontiB commited on
Commit
2d76fb0
·
1 Parent(s): 639b09a
Files changed (2) hide show
  1. app.py +2 -1
  2. 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.19.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 keep Gradio high
28
- gradio>=5.0.0
29
- # 2. We pin FastAPI to prevent the Pydantic 2 crash
30
- fastapi==0.112.2
31
- # 3. We remove the pydantic pin so WandB can install Pydantic v2 automatically
 
 
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