Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,19 @@ import streamlit as st
|
|
| 2 |
from langchain.llms import HuggingFaceHub
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
#
|
| 11 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
#Function to return the response
|
| 14 |
def load_answer(question):
|
|
|
|
| 2 |
from langchain.llms import HuggingFaceHub
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
| 4 |
|
| 5 |
+
from st_pages import Page, show_pages, add_page_title
|
| 6 |
+
|
| 7 |
+
# Optional -- adds the title and icon to the current page
|
| 8 |
+
add_page_title()
|
| 9 |
+
|
| 10 |
+
# Specify what pages should be shown in the sidebar, and what their titles
|
| 11 |
+
# and icons should be
|
| 12 |
+
show_pages(
|
| 13 |
+
[
|
| 14 |
+
Page("app.py", "Home", "🏠"),
|
| 15 |
+
Page("pages/resumo.py", "Resumo", ":books:"),
|
| 16 |
+
]
|
| 17 |
+
)
|
| 18 |
|
| 19 |
#Function to return the response
|
| 20 |
def load_answer(question):
|