Chris4K commited on
Commit
7e11dec
·
verified ·
1 Parent(s): 253aa73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -194,8 +194,8 @@ def compare_embeddings(file, query, model_types, model_names, split_strategy, ch
194
  stats = calculate_statistics(results, search_time)
195
  stats["model"] = f"{model_type} - {model_name}"
196
 
197
- all_results.append(results)
198
- all_stats.append(stats)
199
 
200
  # Flatten the return values to match Gradio's expectation for each output
201
  return [item for sublist in all_results for item in sublist] + [item for sublist in all_stats for item in sublist]
 
194
  stats = calculate_statistics(results, search_time)
195
  stats["model"] = f"{model_type} - {model_name}"
196
 
197
+ all_results.append(pd.DataFrame(results))
198
+ all_stats.append(pd.DataFrame(stats))
199
 
200
  # Flatten the return values to match Gradio's expectation for each output
201
  return [item for sublist in all_results for item in sublist] + [item for sublist in all_stats for item in sublist]