Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,8 @@ class get_datasets:
|
|
54 |
for line in file:
|
55 |
dataset.append(json.loads(line.strip()))
|
56 |
print(dataset[0]['query'])
|
57 |
-
|
|
|
58 |
except FileNotFoundError:
|
59 |
return "File not found. Please upload the file again."
|
60 |
|
|
|
54 |
for line in file:
|
55 |
dataset.append(json.loads(line.strip()))
|
56 |
print(dataset[0]['query'])
|
57 |
+
global dataset # bad practice, I know... But just bear with me. Will later update to state dict.
|
58 |
+
return "File retrieved"
|
59 |
except FileNotFoundError:
|
60 |
return "File not found. Please upload the file again."
|
61 |
|