Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import BertTokenizer, BertForSequenceClassification, BertModel, BertConfig
|
3 |
import torch
|
|
|
4 |
|
5 |
class MultiTaskBertModel(torch.nn.Module):
|
6 |
def __init__(self, bert_model, num_labels_task1, num_labels_task2):
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import BertTokenizer, BertForSequenceClassification, BertModel, BertConfig
|
3 |
import torch
|
4 |
+
import os
|
5 |
|
6 |
class MultiTaskBertModel(torch.nn.Module):
|
7 |
def __init__(self, bert_model, num_labels_task1, num_labels_task2):
|