Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
|
|
3 |
# Load model directly
|
4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
5 |
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("yeye776/
|
7 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("yeye776/
|
8 |
|
9 |
# Gradio 인터페이스 구성
|
10 |
def generate_answer(input_text):
|
|
|
3 |
# Load model directly
|
4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
5 |
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("models/yeye776/OndeviceAI-T5-v1T")
|
7 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("models/yeye776/OndeviceAI-T5-v1")
|
8 |
|
9 |
# Gradio 인터페이스 구성
|
10 |
def generate_answer(input_text):
|