Chris4K commited on
Commit
a1d6ec1
·
verified ·
1 Parent(s): f45e0ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -197,7 +197,8 @@ def compare_embeddings(file, query, model_types, model_names, split_strategy, ch
197
  all_results.append(results)
198
  all_stats.append(stats)
199
 
200
- return [format_results(results, stats) for results, stats in zip(all_results, all_stats)]
 
201
 
202
  # Gradio interface
203
  iface = gr.Interface(
 
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]
202
 
203
  # Gradio interface
204
  iface = gr.Interface(