Prakhar618 commited on
Commit
e12eb34
1 Parent(s): 7925913

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,6 +5,11 @@ import pandas as pd
5
  import numpy as np
6
  from transformers import RobertaTokenizerFast, RobertaForSequenceClassification,Trainer, TrainingArguments
7
 
 
 
 
 
 
8
  model = RobertaForSequenceClassification.from_pretrained('Prakhar618/Gptdetect')
9
  tokenizer = RobertaTokenizerFast.from_pretrained('Prakhar618/Gptdetect', max_length = 256)
10
 
 
5
  import numpy as np
6
  from transformers import RobertaTokenizerFast, RobertaForSequenceClassification,Trainer, TrainingArguments
7
 
8
+
9
+ token = os.environ.get('token', None)
10
+
11
+ !huggingface-cli login --token token
12
+
13
  model = RobertaForSequenceClassification.from_pretrained('Prakhar618/Gptdetect')
14
  tokenizer = RobertaTokenizerFast.from_pretrained('Prakhar618/Gptdetect', max_length = 256)
15