Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import requests
|
|
2 |
import streamlit as st
|
3 |
import streamlit.components.v1 as components
|
4 |
def query(payload):
|
|
|
|
|
|
|
5 |
response = requests.post(API_URL, headers=headers, json=payload)
|
6 |
return response.json()
|
7 |
|
@@ -9,9 +12,7 @@ def semanticComparativeClassification():
|
|
9 |
st.write(st.session_state.mytext)
|
10 |
|
11 |
#API_URL = "https://api-inference.huggingface.co/models/Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt"
|
12 |
-
|
13 |
-
headers = {"Authorization": "Bearer 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"}
|
14 |
-
|
15 |
sentences = [
|
16 |
"Conoces Lya2",
|
17 |
"He perdido la contraseña",
|
|
|
2 |
import streamlit as st
|
3 |
import streamlit.components.v1 as components
|
4 |
def query(payload):
|
5 |
+
API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
|
6 |
+
headers = {"Authorization": "Bearer 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"}
|
7 |
+
|
8 |
response = requests.post(API_URL, headers=headers, json=payload)
|
9 |
return response.json()
|
10 |
|
|
|
12 |
st.write(st.session_state.mytext)
|
13 |
|
14 |
#API_URL = "https://api-inference.huggingface.co/models/Maite89/Roberta_finetuning_semantic_similarity_stsb_multi_mt"
|
15 |
+
|
|
|
|
|
16 |
sentences = [
|
17 |
"Conoces Lya2",
|
18 |
"He perdido la contraseña",
|