Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import transformers
|
|
2 |
import torch
|
3 |
import tokenizers
|
4 |
import gradio as gr
|
5 |
-
import re
|
6 |
|
7 |
def get_model(model_name, model_path='pytorch_model.bin'):
|
8 |
tokenizer = transformers.GPT2Tokenizer.from_pretrained(model_name)
|
|
|
2 |
import torch
|
3 |
import tokenizers
|
4 |
import gradio as gr
|
|
|
5 |
|
6 |
def get_model(model_name, model_path='pytorch_model.bin'):
|
7 |
tokenizer = transformers.GPT2Tokenizer.from_pretrained(model_name)
|