thlanza commited on
Commit
8e8c8ba
1 Parent(s): ae57ed5

Update pages/traducao.py

Browse files
Files changed (1) hide show
  1. pages/traducao.py +4 -0
pages/traducao.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  #Function to return the response
2
  def load_answer(question):
3
  tokenizer = AutoTokenizer.from_pretrained("unicamp-dl/translation-pt-en-t5")
 
1
+ import streamlit as st
2
+ from langchain.llms import HuggingFaceHub
3
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
4
+
5
  #Function to return the response
6
  def load_answer(question):
7
  tokenizer = AutoTokenizer.from_pretrained("unicamp-dl/translation-pt-en-t5")