qq1023 commited on
Commit
ee00948
1 Parent(s): 93ef5a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -222,14 +222,11 @@ def process_and_output_files(input_files):
222
  chats[1]["value"][0][1] ,
223
  )
224
 
225
- # data_dicts = [json.loads(item) for item in data]
 
226
  # df = pd.DataFrame(data_dicts)
227
- # Parse JSON strings and create a DataFrame
228
- parsed_data = [eval(d) for d in data]
229
- # Create a DataFrame from the parsed data
230
- df = pd.DataFrame(parsed_data)
231
 
232
- return df
233
 
234
 
235
 
@@ -438,4 +435,4 @@ page.queue(
438
  concurrency_count=20,
439
  max_size=1,
440
  )
441
- page.launch(show_api=True, show_error=True, debug=True)
 
222
  chats[1]["value"][0][1] ,
223
  )
224
 
225
+ # data_dicts = [json.loads(item[0]) for item in data]
226
+
227
  # df = pd.DataFrame(data_dicts)
 
 
 
 
228
 
229
+ return data[0]
230
 
231
 
232
 
 
435
  concurrency_count=20,
436
  max_size=1,
437
  )
438
+ page.launch(show_api=True, show_error=True, debug=True)