paranitik commited on
Commit
81c616f
1 Parent(s): 33f55fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import gradio as gr
 
2
 
3
  from transformers import pipeline
4
 
5
- pipe = pipeline("translation", model="ai-forever/mGPT-1.3B-turkmen")
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):