Spaces:
Runtime error
Runtime error
danielolusipe
commited on
Commit
•
e21538d
1
Parent(s):
4329eb9
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,8 @@ import tensorflow as tf
|
|
4 |
def split_char(text):
|
5 |
return " ".join(list(text))
|
6 |
|
|
|
|
|
7 |
from spacy.lang.en import English
|
8 |
|
9 |
def make_predictions(Input):
|
@@ -48,7 +50,8 @@ def make_predictions(Input):
|
|
48 |
#abstract_char=[" ".join(list((sentence) for sentence in abstract_sentences))]
|
49 |
|
50 |
# Loading in model and getting a summary of loaded model
|
51 |
-
skimlit_universal_sentence_encoder_model=tf.keras.models.load_model("/content/drive/MyDrive/skimlit_models/Universal_sentence_encoder_Tribrid_embedding_model")
|
|
|
52 |
|
53 |
# Making prediction with loaded model on sample abstract
|
54 |
abstract_pred_probs=skimlit_universal_sentence_encoder_model.predict(x=(abstract_line_number_one_hot,
|
|
|
4 |
def split_char(text):
|
5 |
return " ".join(list(text))
|
6 |
|
7 |
+
!unzip Universal_sentence_encoder_Tribrid_embedding_model-20220920T213455Z-001.zip
|
8 |
+
|
9 |
from spacy.lang.en import English
|
10 |
|
11 |
def make_predictions(Input):
|
|
|
50 |
#abstract_char=[" ".join(list((sentence) for sentence in abstract_sentences))]
|
51 |
|
52 |
# Loading in model and getting a summary of loaded model
|
53 |
+
#skimlit_universal_sentence_encoder_model=tf.keras.models.load_model("/content/drive/MyDrive/skimlit_models/Universal_sentence_encoder_Tribrid_embedding_model")
|
54 |
+
skimlit_universal_sentence_encoder_model=Universal_sentence_encoder_Tribrid_embedding_model-20220920T213455Z-001
|
55 |
|
56 |
# Making prediction with loaded model on sample abstract
|
57 |
abstract_pred_probs=skimlit_universal_sentence_encoder_model.predict(x=(abstract_line_number_one_hot,
|