Evelyn18 commited on
Commit
029de58
·
1 Parent(s): 92f542d
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import gradio as gr
2
  import re
3
  from transformers import pipeline
4
 
@@ -91,7 +91,7 @@ def getQuestion(question):
91
 
92
  return {max_value_qr:pregunta}
93
 
94
- pregunta = gr.text_area('Pregunta')
95
  if pregunta:
96
  contexto = ""
97
  qst = getQuestion(pregunta)
@@ -131,7 +131,7 @@ if pregunta:
131
  print(max_value)
132
  indice = listaScore.index(max_value)
133
  print(indice)
134
- respuesta = gr.text_area('Respuesta', listaAnswer[indice])
135
- porcentaje = gr.text_area('Score', max_value )
136
  else:
137
  print('No hay pregunta seleccionada')
 
1
+ import streamlit as st
2
  import re
3
  from transformers import pipeline
4
 
 
91
 
92
  return {max_value_qr:pregunta}
93
 
94
+ pregunta = st.text_area('Pregunta')
95
  if pregunta:
96
  contexto = ""
97
  qst = getQuestion(pregunta)
 
131
  print(max_value)
132
  indice = listaScore.index(max_value)
133
  print(indice)
134
+ respuesta = st.text_area('Respuesta', listaAnswer[indice])
135
+ porcentaje = st.text_area('Score', max_value )
136
  else:
137
  print('No hay pregunta seleccionada')