Spaces:
Running
Running
eric sali
commited on
Commit
·
0afad09
1
Parent(s):
b2d7d63
Add application file
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
-
##pip install gradio torch transformers
|
2 |
-
##pip install huggingface_hub
|
3 |
|
4 |
import gradio as gr
|
5 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
|
|
|
|
|
|
|
|
|
7 |
tokenizer = AutoTokenizer.from_pretrained("t5-small")
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained("t5-small")
|
9 |
|
|
|
|
|
|
|
1 |
|
2 |
import gradio as gr
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
|
5 |
+
|
6 |
+
##pip install gradio torch transformers
|
7 |
+
##pip install huggingface_hub
|
8 |
+
|
9 |
tokenizer = AutoTokenizer.from_pretrained("t5-small")
|
10 |
model = AutoModelForSeq2SeqLM.from_pretrained("t5-small")
|
11 |
|