JaMe76 commited on
Commit
d6c6484
·
1 Parent(s): 71b61f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.4.1":
11
  os.system("pip uninstall -y gradio")
12
- os.system("pip install gradio==3.4.1")
13
  else:
14
- os.system("pip install gradio==3.4.1")
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