YashB1 commited on
Commit
93ecf67
·
verified ·
1 Parent(s): cb202f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -87,6 +87,16 @@ import streamlit as st
87
  from datasets import Dataset
88
  from datasets import load_dataset, concatenate_datasets
89
 
 
 
 
 
 
 
 
 
 
 
90
  # Function to push feedback data to Hugging Face Hub dataset
91
  def push_to_dataset(feedback, comments):
92
  # Load existing dataset or create a new one if it doesn't exist
 
87
  from datasets import Dataset
88
  from datasets import load_dataset, concatenate_datasets
89
 
90
+ from huggingface_hub import login, HfFolder
91
+ import os
92
+
93
+ # Set the token
94
+ token = "" # Replace "YOUR_AUTHENTICATION_TOKEN" with your actual token
95
+
96
+ # Login using the token
97
+
98
+ login(token=token)
99
+
100
  # Function to push feedback data to Hugging Face Hub dataset
101
  def push_to_dataset(feedback, comments):
102
  # Load existing dataset or create a new one if it doesn't exist