Dorjzodovsuren
commited on
Commit
•
cc7d8e3
1
Parent(s):
66ed7e3
Update app.py
Browse filesfixed incorrect repo naming.
app.py
CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
|
|
3 |
from transformers import pipeline
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
7 |
-
model = AutoModelForCausalLM.from_pretrained("
|
8 |
|
9 |
generation_params = {
|
10 |
"do_sample": True,
|
|
|
3 |
from transformers import pipeline
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("Dorjzodovsuren/mongolian-gpt2")
|
7 |
+
model = AutoModelForCausalLM.from_pretrained("Dorjzodovsuren/mongolian-gpt2", from_flax=True)
|
8 |
|
9 |
generation_params = {
|
10 |
"do_sample": True,
|