Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
| 3 |
|
| 4 |
-
# بارگذاری مدل
|
| 5 |
-
model_name = "
|
| 6 |
|
| 7 |
# بارگذاری توکنایزر و مدل
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
| 3 |
|
| 4 |
+
# بارگذاری مدل GPT-2-Persian
|
| 5 |
+
model_name = "bolbolzaban/gpt2-persian"
|
| 6 |
|
| 7 |
# بارگذاری توکنایزر و مدل
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|