imalexianne commited on
Commit
e2276bc
1 Parent(s): 43b0f99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,12 +19,12 @@ login("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")
19
  # Requirements
20
  # huggingface_token = "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" # Replace with your actual token
21
  model_path = "imalexianne/distilbert-base-uncased"
22
- tokenizer = AutoTokenizer.from_pretrained((model_path)
23
 
24
  # tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
25
  # tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased", revision="main")
26
- config = AutoConfig.from_pretrained(model_path, revision="main")
27
- model = AutoModelForSequenceClassification.from_pretrained(model_path, revision="main")
28
 
29
  # Preprocessessing function
30
  def preprocess(text):
 
19
  # Requirements
20
  # huggingface_token = "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" # Replace with your actual token
21
  model_path = "imalexianne/distilbert-base-uncased"
22
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
23
 
24
  # tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
25
  # tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased", revision="main")
26
+ config = AutoConfig.from_pretrained(model_path)
27
+ model = AutoModelForSequenceClassification.from_pretrained(model_path)
28
 
29
  # Preprocessessing function
30
  def preprocess(text):