Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
import requests
|
2 |
import streamlit as st
|
3 |
import streamlit.components.v1 as components
|
4 |
-
|
5 |
-
response = ""
|
6 |
def semanticComparativeClassification():
|
7 |
global response
|
8 |
API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
|
@@ -63,7 +62,7 @@ def semanticComparativeClassification():
|
|
63 |
#st.write(x, 'squared is', x * x)
|
64 |
|
65 |
|
66 |
-
|
67 |
st.title('Reconocimiento semántico')
|
68 |
title = st.text_input('Pregunta', 'Hazme una pregunta', on_change=semanticComparativeClassification,key='mytext')
|
69 |
|
|
|
1 |
import requests
|
2 |
import streamlit as st
|
3 |
import streamlit.components.v1 as components
|
4 |
+
|
|
|
5 |
def semanticComparativeClassification():
|
6 |
global response
|
7 |
API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
|
|
|
62 |
#st.write(x, 'squared is', x * x)
|
63 |
|
64 |
|
65 |
+
st.session_state.response = ""
|
66 |
st.title('Reconocimiento semántico')
|
67 |
title = st.text_input('Pregunta', 'Hazme una pregunta', on_change=semanticComparativeClassification,key='mytext')
|
68 |
|