Spaces:
Runtime error
Runtime error
jaifar530
commited on
fix
Browse files
app.py
CHANGED
|
@@ -229,9 +229,9 @@ def AI_vs_AI_RandomForest_88_Samples(df):
|
|
| 229 |
|
| 230 |
response = requests.get(url, headers=headers)
|
| 231 |
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
|
| 236 |
# At this point, the pickle file should exist, either it was already there, or it has been downloaded and extracted.
|
| 237 |
with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'rb') as file:
|
|
|
|
| 229 |
|
| 230 |
response = requests.get(url, headers=headers)
|
| 231 |
|
| 232 |
+
# Save the file
|
| 233 |
+
with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'wb') as file:
|
| 234 |
+
file.write(response.content)
|
| 235 |
|
| 236 |
# At this point, the pickle file should exist, either it was already there, or it has been downloaded and extracted.
|
| 237 |
with open('AI_vs_AI_RandomForest_88_Samples.pkl', 'rb') as file:
|