Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from huggingface_hub import from_pretrained_keras
|
| 2 |
import numpy as np
|
| 3 |
import pandas as pd
|
|
@@ -8,9 +11,6 @@ from tensorflow import keras
|
|
| 8 |
import gradio as gr
|
| 9 |
|
| 10 |
import os
|
| 11 |
-
os.system("pip install gradio==2.8.0b5")
|
| 12 |
-
os.system("pip install -r requirements.txt")
|
| 13 |
-
os.system("pip freeze")
|
| 14 |
|
| 15 |
def make_bert_preprocessing_model(sentence_features, seq_length=128):
|
| 16 |
"""Returns Model mapping string features to BERT inputs.
|
|
|
|
| 1 |
+
os.system("pip install gradio==2.8.0b5")
|
| 2 |
+
os.system("pip install -r requirements.txt")
|
| 3 |
+
os.system("pip freeze")
|
| 4 |
from huggingface_hub import from_pretrained_keras
|
| 5 |
import numpy as np
|
| 6 |
import pandas as pd
|
|
|
|
| 11 |
import gradio as gr
|
| 12 |
|
| 13 |
import os
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
def make_bert_preprocessing_model(sentence_features, seq_length=128):
|
| 16 |
"""Returns Model mapping string features to BERT inputs.
|