graredcr commited on
Commit
cf550ac
·
1 Parent(s): 6e5b849

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -7,6 +7,7 @@ st.session_state.mytext = ""
7
  def semanticComparativeClassification():
8
  st.session_state["respuesta"] = ""
9
  st.session_state["logresp"] = ""
 
10
  apis_urls = [
11
  "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli",
12
  "https://api-inference.huggingface.co/models/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
@@ -83,6 +84,7 @@ def semanticComparativeClassificationCall(api_url: str):
83
 
84
 
85
  st.session_state.logresp = "sdfasfas ssss"
 
86
 
87
  #x = st.slider('Select a value')
88
  #st.write(x, 'squared is', x * x)
@@ -96,4 +98,9 @@ title = st.text_input('Pregunta', '', on_change=semanticComparativeClassificatio
96
  st.text_area( "Respuesta: ", key= "respuesta", height=200 )
97
  st.text_area( "Log: ", key= "logresp", height=600 )
98
 
 
 
 
 
 
99
 
 
7
  def semanticComparativeClassification():
8
  st.session_state["respuesta"] = ""
9
  st.session_state["logresp"] = ""
10
+ button_placeholder.write('sdfadsfasfdasfdadfs');
11
  apis_urls = [
12
  "https://api-inference.huggingface.co/models/symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli",
13
  "https://api-inference.huggingface.co/models/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
 
84
 
85
 
86
  st.session_state.logresp = "sdfasfas ssss"
87
+
88
 
89
  #x = st.slider('Select a value')
90
  #st.write(x, 'squared is', x * x)
 
98
  st.text_area( "Respuesta: ", key= "respuesta", height=200 )
99
  st.text_area( "Log: ", key= "logresp", height=600 )
100
 
101
+ # Section 1
102
+ button = st.button('Button')
103
+ button_placeholder = st.empty()
104
+ button_placeholder.write(f'button = {button}')
105
+
106