app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
-
from transformers import BertTokenizer
|
4 |
import torch.nn.functional as F
|
5 |
|
6 |
# Load model dan tokenizer dari Hugging Face
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
+
from transformers import BertTokenizer, BertModel # Pastikan ini ada
|
4 |
import torch.nn.functional as F
|
5 |
|
6 |
# Load model dan tokenizer dari Hugging Face
|