Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -487,11 +487,11 @@ def main():
|
|
487 |
|
488 |
# Write JSON to file
|
489 |
#with open(DATA_FILE, 'w') as f: #w+
|
490 |
-
with urllib.request.urlopen(DATASET_REPO_URL) as response:
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
|
496 |
|
497 |
df_final1.to_csv('predictions.csv')
|
|
|
487 |
|
488 |
# Write JSON to file
|
489 |
#with open(DATA_FILE, 'w') as f: #w+
|
490 |
+
with urllib.request.urlopen(DATASET_REPO_URL,'w') as response:
|
491 |
+
# data = response.read()
|
492 |
+
# with open(DATASET_REPO_URL,'w') as f:
|
493 |
+
st.write(response.read())
|
494 |
+
response.write(json.dump(json_data))
|
495 |
|
496 |
|
497 |
df_final1.to_csv('predictions.csv')
|