Spaces:
Sleeping
Sleeping
swcrazyfan
commited on
Commit
•
b2a8d79
1
Parent(s):
6dbd7d8
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import torch
|
|
2 |
from transformers import (T5ForConditionalGeneration,T5Tokenizer)
|
3 |
import gradio as gr
|
4 |
|
5 |
-
best_model_path = "swcrazyfan/
|
6 |
model = T5ForConditionalGeneration.from_pretrained(best_model_path)
|
7 |
-
tokenizer = T5Tokenizer.from_pretrained("swcrazyfan/
|
8 |
|
9 |
def tokenize_data(text):
|
10 |
# Tokenize the review body
|
|
|
2 |
from transformers import (T5ForConditionalGeneration,T5Tokenizer)
|
3 |
import gradio as gr
|
4 |
|
5 |
+
best_model_path = "swcrazyfan/Dekingify-T5-Large"
|
6 |
model = T5ForConditionalGeneration.from_pretrained(best_model_path)
|
7 |
+
tokenizer = T5Tokenizer.from_pretrained("swcrazyfan/Dekingify-T5-Large")
|
8 |
|
9 |
def tokenize_data(text):
|
10 |
# Tokenize the review body
|