thlanza commited on
Commit
6683b59
·
1 Parent(s): ecc18d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
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
- # Answer:
7
- # [
8
- # 0:{
9
- # "generated_text":"I like rice I like rice I like rice I like ri"
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):