Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import streamlit as st
|
|
3 |
import streamlit.components.v1 as components
|
4 |
|
5 |
def semanticComparativeClassification():
|
6 |
-
|
|
|
7 |
#API_URL = "https://api-inference.huggingface.co/models/Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt"
|
8 |
API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
|
9 |
headers = {"Authorization": "Bearer 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"}
|
@@ -27,7 +28,7 @@ def semanticComparativeClassification():
|
|
27 |
})
|
28 |
|
29 |
for i in output:
|
30 |
-
|
31 |
|
32 |
return output
|
33 |
|
|
|
3 |
import streamlit.components.v1 as components
|
4 |
|
5 |
def semanticComparativeClassification():
|
6 |
+
st.text(st.session_state.mytext)
|
7 |
+
|
8 |
#API_URL = "https://api-inference.huggingface.co/models/Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt"
|
9 |
API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
|
10 |
headers = {"Authorization": "Bearer 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"}
|
|
|
28 |
})
|
29 |
|
30 |
for i in output:
|
31 |
+
st.text(i)
|
32 |
|
33 |
return output
|
34 |
|