Amitontheweb
commited on
Commit
·
bf8dbf8
1
Parent(s):
2246a44
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
#---------------------AI Paraphraser - iFrame code -----------------------------
|
2 |
# With direct model load
|
3 |
#----------------------------------------------------------------
|
4 |
-
|
5 |
|
6 |
import transformers
|
7 |
import gradio as gr
|
|
|
|
|
8 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained("humarin/chatgpt_paraphraser_on_T5_base")
|
|
|
1 |
#---------------------AI Paraphraser - iFrame code -----------------------------
|
2 |
# With direct model load
|
3 |
#----------------------------------------------------------------
|
4 |
+
|
5 |
|
6 |
import transformers
|
7 |
import gradio as gr
|
8 |
+
import torch
|
9 |
+
|
10 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
11 |
|
12 |
tokenizer = AutoTokenizer.from_pretrained("humarin/chatgpt_paraphraser_on_T5_base")
|