File size: 979 Bytes
ec04958
 
 
 
6683b59
ec04958
0b449b7
 
6683b59
 
 
 
 
 
 
 
 
0be4c02
6683b59
 
ec04958
 
52d6a93
0be4c02
e4bc5ce
0be4c02
 
ec04958
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import streamlit as st
from langchain.llms import HuggingFaceHub
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
  
from st_pages import Page, show_pages, add_page_title

st.set_page_config(page_title="Tradução do Português para o Inglês.", page_icon=":robot:")

# Optional -- adds the title and icon to the current page
add_page_title()

# Specify what pages should be shown in the sidebar, and what their titles 
# and icons should be
show_pages(
    [
        Page("app.py", "Home", "🏠"),
        Page("pages/resumo.py", "Resumo", ":books:"),
        Page("pages/traducao.py", "Resumo", ":books:"),
    ]
)



#App UI starts here
st.image("https://www.viajenaviagem.com/wp-content/uploads/2020/02/belo-horizonte-pampulha.jpg.webp", caption='Autoria de Thiago Lanza. Todos os direitos reservados')
st.header("Esse é o ajudante!")
st.subheader("Escolha no menu ao lado entre traduzir um texto do português para o inglês ou resumir um texto.")