Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -471,6 +471,13 @@ def main():
|
|
| 471 |
# Write JSON to file
|
| 472 |
with open('ch.json', 'w') as f:
|
| 473 |
json.dump(json_data, f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
|
| 475 |
csv_file = "predictions.csv"
|
| 476 |
json_file = "smalljson.json"
|
|
|
|
| 471 |
# Write JSON to file
|
| 472 |
with open('ch.json', 'w') as f:
|
| 473 |
json.dump(json_data, f)
|
| 474 |
+
upload_file(
|
| 475 |
+
path_or_fileobj=f,
|
| 476 |
+
path_in_repo="ch.json",
|
| 477 |
+
repo_id="Seetha/IMA-pipeline-streamlit",
|
| 478 |
+
repo_type="datasets",
|
| 479 |
+
token="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",
|
| 480 |
+
)
|
| 481 |
|
| 482 |
csv_file = "predictions.csv"
|
| 483 |
json_file = "smalljson.json"
|