Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("
|
6 |
|
7 |
|
8 |
def translate(text):
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
3 |
|
4 |
from transformers import pipeline
|
5 |
|
6 |
+
pipe = pipeline("text-generation", model="ai-forever/mGPT-1.3B-turkmen")
|
7 |
|
8 |
|
9 |
def translate(text):
|