mfarre HF staff commited on
Commit
b531ecc
·
1 Parent(s): 3829047
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -93,9 +93,13 @@ def join_waitlist(
93
 
94
  if error is None: # Success or already registered
95
  # Verify user is in the list
96
- verification_data = pd.read_csv(
97
- f"https://huggingface.co/datasets/{DATASET_REPO}/raw/main/waitlist.csv"
 
 
 
98
  )
 
99
  if username in verification_data['userid'].values:
100
  return gr.update(
101
  value="## 🎉 Thanks for joining the waitlist! We'll keep you updated on SmolVLM2 iPhone app.",
 
93
 
94
  if error is None: # Success or already registered
95
  # Verify user is in the list
96
+ file_content = hf_api.hf_hub_download(
97
+ repo_id=DATASET_REPO,
98
+ repo_type="dataset",
99
+ filename="waitlist.csv",
100
+ token=os.getenv("HF_TOKEN")
101
  )
102
+ verification_data = pd.read_csv(file_content)
103
  if username in verification_data['userid'].values:
104
  return gr.update(
105
  value="## 🎉 Thanks for joining the waitlist! We'll keep you updated on SmolVLM2 iPhone app.",