Spaces:
Runtime error
Runtime error
ai-forever
commited on
Commit
•
af0197c
1
Parent(s):
d19e0a0
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
|
|
4 |
tokenizer = GPT2Tokenizer.from_pretrained("sberbank-ai/mGPT")
|
5 |
model = GPT2LMHeadModel.from_pretrained("sberbank-ai/mGPT")
|
6 |
#model.cuda()
|
|
|
1 |
+
import torch
|
2 |
import gradio as gr
|
|
|
3 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
4 |
+
|
5 |
tokenizer = GPT2Tokenizer.from_pretrained("sberbank-ai/mGPT")
|
6 |
model = GPT2LMHeadModel.from_pretrained("sberbank-ai/mGPT")
|
7 |
#model.cuda()
|