Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,12 +65,12 @@ def write_logs(message, message_type="Prediction"):
|
|
| 65 |
"""
|
| 66 |
Write logs
|
| 67 |
"""
|
| 68 |
-
with Repository(local_dir="data", clone_from=dataset_url, use_auth_token=WRITE_TOKEN).commit(commit_message="from private", blocking=False):
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
return
|
| 75 |
|
| 76 |
def predict(x, request: gr.Request):
|
|
|
|
| 65 |
"""
|
| 66 |
Write logs
|
| 67 |
"""
|
| 68 |
+
#with Repository(local_dir="data", clone_from=dataset_url, use_auth_token=WRITE_TOKEN).commit(commit_message="from private", blocking=False):
|
| 69 |
+
# with open(dataset_path, "a") as csvfile:
|
| 70 |
+
# writer = csv.DictWriter(csvfile, fieldnames=["name", "message", "time"])
|
| 71 |
+
# writer.writerow(
|
| 72 |
+
# {"name": message_type, "message": message, "time": str(datetime.now())}
|
| 73 |
+
# )
|
| 74 |
return
|
| 75 |
|
| 76 |
def predict(x, request: gr.Request):
|