Miquel Farré
commited on
Commit
·
cd5f216
1
Parent(s):
f1f70c0
update
Browse files
app.py
CHANGED
|
@@ -46,11 +46,14 @@ def commit_signup(username: str) -> Optional[str]:
|
|
| 46 |
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False) as tmp:
|
| 47 |
updated_data.to_csv(tmp.name, index=False)
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
try:
|
| 55 |
create_commit(
|
| 56 |
repo_id=DATASET_REPO,
|
|
|
|
| 46 |
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False) as tmp:
|
| 47 |
updated_data.to_csv(tmp.name, index=False)
|
| 48 |
|
| 49 |
+
try:
|
| 50 |
+
operation = CommitOperationAdd(
|
| 51 |
+
path_in_repo="waitlist.csv",
|
| 52 |
+
path_or_fileobj=tmp.name
|
| 53 |
+
)
|
| 54 |
+
except Exception as e:
|
| 55 |
+
print(f"CommitOperationAdd {str(e)}")
|
| 56 |
+
|
| 57 |
try:
|
| 58 |
create_commit(
|
| 59 |
repo_id=DATASET_REPO,
|