Dimitre commited on
Commit
aa01698
·
1 Parent(s): 058e4f4

Updating requirements

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -6,6 +6,7 @@ sys.path.append("/hub")
6
 
7
  import gradio as gr
8
  import tensorflow as tf
 
9
  from hub.tensorflow_hub.hf_utils import pull_from_hub
10
 
11
 
 
6
 
7
  import gradio as gr
8
  import tensorflow as tf
9
+ import tensorflow_text as text # Registers the ops. (needed for "bert_preprocessor")
10
  from hub.tensorflow_hub.hf_utils import pull_from_hub
11
 
12
 
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  GitPython
2
  tensorflow
3
- tensorflow_hub
 
 
1
  GitPython
2
  tensorflow
3
+ tensorflow_hub
4
+ tensorflow_text