update
Browse files
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 |
-
|
97 |
-
|
|
|
|
|
|
|
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.",
|