Spaces:
Runtime error
Runtime error
Update pages/traducao.py
Browse files- 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")
|