firqaaa commited on
Commit
f0e99dc
1 Parent(s): 673d00d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -161,7 +161,7 @@ if uploaded_files:
161
  try:
162
  df = pd.DataFrame(literal_eval(str(json.dumps(tablex_chain.run(inp)[0])).replace("\'", '\"')), index=[0]).fillna('')
163
  except:
164
- df = pd.DataFrame(literal_eval(str(json.dumps(tablex_chain.run(inp)[0]) + '}').replace("\'", '\"')), index=[0]).fillna('')
165
  # df = pd.DataFrame(repair_json(tablex_chain.run(inp)[0]))
166
  chunkdf.append(df)
167
 
 
161
  try:
162
  df = pd.DataFrame(literal_eval(str(json.dumps(tablex_chain.run(inp)[0])).replace("\'", '\"')), index=[0]).fillna('')
163
  except:
164
+ df = pd.DataFrame(literal_eval(str(json.dumps(tablex_chain.run(inp)[0]) + ']').replace("\'", '\"')), index=[0]).fillna('')
165
  # df = pd.DataFrame(repair_json(tablex_chain.run(inp)[0]))
166
  chunkdf.append(df)
167