Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,11 @@ def check_additional_requirements():
|
|
7 |
if importlib.util.find_spec("detectron2") is None:
|
8 |
os.system('pip install detectron2@git+https://github.com/facebookresearch/detectron2.git')
|
9 |
if importlib.util.find_spec("gradio") is not None:
|
10 |
-
if importlib.metadata.version("gradio")!="3.
|
11 |
os.system("pip uninstall -y gradio")
|
12 |
-
os.system("pip install gradio==3.
|
13 |
else:
|
14 |
-
os.system("pip install gradio==3.
|
15 |
os.system(os.environ["DD_ADDONS"])
|
16 |
return
|
17 |
|
|
|
7 |
if importlib.util.find_spec("detectron2") is None:
|
8 |
os.system('pip install detectron2@git+https://github.com/facebookresearch/detectron2.git')
|
9 |
if importlib.util.find_spec("gradio") is not None:
|
10 |
+
if importlib.metadata.version("gradio")!="3.44.3":
|
11 |
os.system("pip uninstall -y gradio")
|
12 |
+
os.system("pip install gradio==3.44.3")
|
13 |
else:
|
14 |
+
os.system("pip install gradio==3.44.3")
|
15 |
os.system(os.environ["DD_ADDONS"])
|
16 |
return
|
17 |
|