graredcr commited on
Commit
790c1c3
·
1 Parent(s): bc032e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import requests
2
  import streamlit as st
3
  import streamlit.components.v1 as components
4
-
5
- st.session_state.respuesta = ""
6
  def semanticComparativeClassification():
7
  API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
8
  headers = {"Authorization": "Bearer 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"}
@@ -68,6 +67,4 @@ st.session_state.response = ""
68
  st.title('Reconocimiento semántico')
69
  title = st.text_input('Pregunta', 'Hazme una pregunta', on_change=semanticComparativeClassification,key='mytext')
70
 
71
- my_area = st.text_area(
72
- "Respuesta: ", key= "respuesta", height=200
73
- )
 
1
  import requests
2
  import streamlit as st
3
  import streamlit.components.v1 as components
4
+
 
5
  def semanticComparativeClassification():
6
  API_URL = "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli"
7
  headers = {"Authorization": "Bearer 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"}
 
67
  st.title('Reconocimiento semántico')
68
  title = st.text_input('Pregunta', 'Hazme una pregunta', on_change=semanticComparativeClassification,key='mytext')
69
 
70
+ st.text_area( "Respuesta: ", key= "respuesta", height=200 )