Dimitre commited on
Commit
32b0b31
·
1 Parent(s): 00dd6df

Lib workaround

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +2 -2
app.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  import gradio as gr
2
  import tensorflow_text as text # Registers the ops. (needed for "bert_preprocessor")
3
  from tensorflow_hub.hf_utils import pull_from_hub
 
1
+ # Workaround to install the lib without "setup.py"
2
+ from git import Repo
3
+ Repo.clone_from("https://github.com/dimitreOliveira/hub.git", "./")
4
+
5
  import gradio as gr
6
  import tensorflow_text as text # Registers the ops. (needed for "bert_preprocessor")
7
  from tensorflow_hub.hf_utils import pull_from_hub
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  sklearn
 
2
  tensorflow
3
- tensorflow_text
4
- git+https://github.com/dimitreOliveira/hub.git
 
1
  sklearn
2
+ GitPython
3
  tensorflow
4
+ tensorflow_text