Dusan commited on
Commit
9d196bb
1 Parent(s): 6526b0f

Update fudge/model.py

Browse files
Files changed (1) hide show
  1. fudge/model.py +3 -3
fudge/model.py CHANGED
@@ -6,9 +6,9 @@ import torch.nn.functional as F
6
  from torch.nn.utils.rnn import pad_sequence, pad_packed_sequence, pack_padded_sequence
7
  from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline, set_seed, GPT2Tokenizer, GPT2Model, GPT2LMHeadModel, GPT2Config, GPT2ForSequenceClassification, GPT2LMHeadModel, MarianTokenizer
8
 
9
- from constants import *
10
- from util import pad_mask
11
- from clickbait_classifier import BertClickbaitClassifier, ClickbaitConfig
12
 
13
  class Model(nn.Module):
14
  def __init__(self, args, gpt_pad_id, vocab_size, rhyme_group_size=None, glove_embeddings=None, verbose=True):
 
6
  from torch.nn.utils.rnn import pad_sequence, pad_packed_sequence, pack_padded_sequence
7
  from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline, set_seed, GPT2Tokenizer, GPT2Model, GPT2LMHeadModel, GPT2Config, GPT2ForSequenceClassification, GPT2LMHeadModel, MarianTokenizer
8
 
9
+ from fudge.constants import *
10
+ from fudge.util import pad_mask
11
+ from fudge.clickbait_classifier import BertClickbaitClassifier, ClickbaitConfig
12
 
13
  class Model(nn.Module):
14
  def __init__(self, args, gpt_pad_id, vocab_size, rhyme_group_size=None, glove_embeddings=None, verbose=True):