tykiww commited on
Commit
2cfc3c5
1 Parent(s): 5a49926

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return dataset
 
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