Spaces:
Runtime error
Runtime error
Commit
·
49176cd
1
Parent(s):
e5d85e7
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,9 @@ dataset_api = project.get_dataset_api()
|
|
12 |
dataset_api.download("Resources/batch_data_predictions.csv")
|
13 |
dataset = load_dataset("csv", data_files="batch_data_predictions.csv")
|
14 |
predictions_df = pd.DataFrame(dataset,columns=['Headlines', 'URL','Predictions'],)
|
15 |
-
predictions_df_url0 = predictions_df['URL'][0]
|
16 |
-
predictions_df_url1 = predictions_df['URL'][1]
|
17 |
-
predictions_df_url2 = predictions_df['URL'][3]
|
18 |
|
19 |
|
20 |
|
|
|
12 |
dataset_api.download("Resources/batch_data_predictions.csv")
|
13 |
dataset = load_dataset("csv", data_files="batch_data_predictions.csv")
|
14 |
predictions_df = pd.DataFrame(dataset,columns=['Headlines', 'URL','Predictions'],)
|
15 |
+
predictions_df_url0 = predictions_df['URL'].iloc[0]
|
16 |
+
predictions_df_url1 = predictions_df['URL'].iloc[1]
|
17 |
+
predictions_df_url2 = predictions_df['URL'].iloc[3]
|
18 |
|
19 |
|
20 |
|