torileatherman commited on
Commit
1322274
·
1 Parent(s): ac12bb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,7 +3,8 @@ from datasets import load_dataset
3
  import pandas as pd
4
  from huggingface_hub import create_repo
5
  from huggingface_hub import login
6
- login()
 
7
 
8
  dataset = load_dataset("torileatherman/sentiment_analysis_batch_predictions", split='train')
9
  predictions_df = pd.DataFrame(dataset)
@@ -48,7 +49,7 @@ def thanks(sentiment):
48
  labeled_sentiments.append(sentiment)
49
  counter = len(labeled_sentiments)
50
  # create repo
51
- create_repo("torileatherman/"+counter+"labeled_data")
52
  # push to repo
53
  labeled_sentiments = Dataset.from_pandas(labeled_sentiments)
54
  labeled_sentiments.push_to_hub("torileatherman/"+counter+"labeled_data")
 
3
  import pandas as pd
4
  from huggingface_hub import create_repo
5
  from huggingface_hub import login
6
+ import os
7
+ login(token='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')
8
 
9
  dataset = load_dataset("torileatherman/sentiment_analysis_batch_predictions", split='train')
10
  predictions_df = pd.DataFrame(dataset)
 
49
  labeled_sentiments.append(sentiment)
50
  counter = len(labeled_sentiments)
51
  # create repo
52
+ create_repo("torileatherman/"+counter+"labeled_data", use_auth=)
53
  # push to repo
54
  labeled_sentiments = Dataset.from_pandas(labeled_sentiments)
55
  labeled_sentiments.push_to_hub("torileatherman/"+counter+"labeled_data")