Skip to content

Commit

Permalink
Reorganised UI folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Josemvg committed Feb 7, 2022
1 parent 710d496 commit bd4b79a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/pages/dataset_upload.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import streamlit as st

def app():
def main():

#Subtitulo de la seccion de subida de conjuntos de datos
st.subheader('Dataset Upload')
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/question_answering.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def queryJSON(queryURL, question):
response = requests.get(queryURL, files = files)
return response.json()

def app():
def main():

@st.cache(show_spinner=False, allow_output_mutation=True)
def getAnswers(data):
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions ui/webapp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import streamlit as st

#Importamos el gestor de multiples paginas
from multipage import MultiPage
from utils.multipage import MultiPage
#Importamos las aplicaciones correspondientes a las distintas paginas de nuestra interfaz
from pages import question_answering, dataset_upload

Expand All @@ -26,8 +26,8 @@
""", unsafe_allow_html=True)

#Agregamos las distintas paginas
app.add_page("Question-Answering",question_answering.app)
app.add_page("Upload Dataset",dataset_upload.app)
app.add_page("Question-Answering",question_answering.main)
app.add_page("Upload Dataset",dataset_upload.main)

#Ejecutamos el codigo de la pagina principal
app.run()

0 comments on commit bd4b79a

Please sign in to comment.