gradio version assertion
Browse files
app.py
CHANGED
@@ -2,6 +2,12 @@
|
|
2 |
Gradio app for interactive medical video segmentation using MedSAM2.
|
3 |
Please use gradio==3.38.0
|
4 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
import gradio
|
6 |
assert gradio.__version__.startswith("3.38"), f"Wrong Gradio version: {gradio.__version__}"
|
7 |
import datetime
|
|
|
2 |
Gradio app for interactive medical video segmentation using MedSAM2.
|
3 |
Please use gradio==3.38.0
|
4 |
"""
|
5 |
+
import os
|
6 |
+
|
7 |
+
# Force uninstall gradio > 3.x if installed
|
8 |
+
os.system("pip uninstall -y gradio gradio-client")
|
9 |
+
os.system("pip install gradio==3.38.0 gradio-client==0.5.0")
|
10 |
+
|
11 |
import gradio
|
12 |
assert gradio.__version__.startswith("3.38"), f"Wrong Gradio version: {gradio.__version__}"
|
13 |
import datetime
|