Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,6 @@ import gradio as grad
|
|
| 4 |
text2text_tkn= T5Tokenizer.from_pretrained("t5-small")
|
| 5 |
mdl = T5ForConditionalGeneration.from_pretrained("t5-small")
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
def text2text_sentiment(text):
|
| 10 |
inp = "sst2 sentence: "+text
|
| 11 |
enc = text2text_tkn(inp, return_tensors="pt")
|
|
|
|
| 4 |
text2text_tkn= T5Tokenizer.from_pretrained("t5-small")
|
| 5 |
mdl = T5ForConditionalGeneration.from_pretrained("t5-small")
|
| 6 |
|
|
|
|
|
|
|
| 7 |
def text2text_sentiment(text):
|
| 8 |
inp = "sst2 sentence: "+text
|
| 9 |
enc = text2text_tkn(inp, return_tensors="pt")
|