Tevfik istanbullu commited on
Commit
58f56f4
1 Parent(s): ed75482

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import joblib
2
  import gradio as gr
3
  from datasets import Dataset, DatasetDict, load_dataset
 
4
 
 
5
  model = joblib.load('arabic_text_classifier.pkl')
6
  vectorizer = joblib.load('tfidf_vectorizer.pkl')
7
  label_encoder = joblib.load('label_encoder.pkl')
 
1
  import joblib
2
  import gradio as gr
3
  from datasets import Dataset, DatasetDict, load_dataset
4
+ from huggingface_hub import login
5
 
6
+ login(token="classification")
7
  model = joblib.load('arabic_text_classifier.pkl')
8
  vectorizer = joblib.load('tfidf_vectorizer.pkl')
9
  label_encoder = joblib.load('label_encoder.pkl')