Spaces:
Runtime error
Runtime error
thepolymerguy
commited on
Commit
•
61c7a4c
1
Parent(s):
a98913e
Update app.py
Browse files
app.py
CHANGED
@@ -211,4 +211,19 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
|
|
211 |
|
212 |
""")
|
213 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
demo.launch()
|
|
|
211 |
|
212 |
""")
|
213 |
|
214 |
+
"""
|
215 |
+
########## LOADING PRE-COMPUTED EMBEDDINGS ##########
|
216 |
+
class_embeddings = pd.read_csv('Embeddings/MainClassEmbeddings.csv')
|
217 |
+
|
218 |
+
abstract = """
|
219 |
+
#Described herein are strength characteristics and biodegradation of articles produced using one or more “green” sustainable polymers and one or more carbohydrate-based polymers. A compatibilizer can optionally be included in the article. In some cases, the article can include a film, a bag, a bottle, a cap or lid therefore, a sheet, a box or other container, a plate, a cup, utensils, or the like.
|
220 |
+
"""
|
221 |
+
abstract= clean_data(abstract, type='String')
|
222 |
+
abstract_embedding = sentence_embedder(abstract, Model_Path)
|
223 |
+
Number = 10
|
224 |
+
broad_scope_predictions = broad_scope_class_predictor(class_embeddings, abstract_embedding, Number, Sensitivity='High')
|
225 |
+
|
226 |
+
print(broad_scope_class_predictor)
|
227 |
+
"""
|
228 |
+
|
229 |
demo.launch()
|