binxu.wang
commited on
Commit
•
6d954e4
1
Parent(s):
48b0464
add correct packages
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import transformers
|
3 |
-
import tokenizers
|
|
|
|
|
|
|
|
|
4 |
# https://huggingface.co/docs/hub/spaces-sdks-gradio
|
5 |
|
6 |
tokenizer_bert = BertTokenizerFast.from_pretrained('bert-base-chinese',
|
|
|
1 |
import gradio as gr
|
2 |
import transformers
|
3 |
+
# import tokenizers
|
4 |
+
import torch
|
5 |
+
from transformers import pipeline, set_seed
|
6 |
+
from transformers import GPT2Model, GPT2Config, GPT2LMHeadModel
|
7 |
+
from transformers import BertTokenizerFast
|
8 |
# https://huggingface.co/docs/hub/spaces-sdks-gradio
|
9 |
|
10 |
tokenizer_bert = BertTokenizerFast.from_pretrained('bert-base-chinese',
|