sharjeel1477 commited on
Commit
21aea26
1 Parent(s): 1c13d7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -16,13 +16,13 @@ def handleBuild(files, data):
16
 
17
 
18
  def handleAsk(braindata):
19
- try:
20
- data = json.loads(braindata)
21
- print(data)
22
- return handleSubmit(data[0], data[1], data[2], data[3], data[4], data[5])
23
- except:
24
- res = {"data": ["There's an error. Please try again.",{"memory": []}]}
25
- return json.dumps(res)
26
 
27
  def handleCsv(file, question):
28
  df = pd.read_csv(file.name)
 
16
 
17
 
18
  def handleAsk(braindata):
19
+ # try:
20
+ data = json.loads(braindata)
21
+ print(data)
22
+ return handleSubmit(data[0], data[1], data[2], data[3], data[4], data[5])
23
+ # except:
24
+ # res = {"data": ["There's an error. Please try again.",{"memory": []}]}
25
+ # return json.dumps(res)
26
 
27
  def handleCsv(file, question):
28
  df = pd.read_csv(file.name)