JaMe76 commited on
Commit
286915c
1 Parent(s): c8580c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import os
2
  os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html')
3
 
 
 
 
 
4
  from os import getcwd, path, environ
5
  import deepdoctection as dd
6
  from deepdoctection.dataflow.serialize import DataFromList
 
1
  import os
2
  os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html')
3
 
4
+ # work around: https://discuss.huggingface.co/t/how-to-install-a-specific-version-of-gradio-in-spaces/13552
5
+ os.system("pip uninstall -y gradio")
6
+ os.system("pip install gradio==3.4.1")
7
+
8
  from os import getcwd, path, environ
9
  import deepdoctection as dd
10
  from deepdoctection.dataflow.serialize import DataFromList