Francesco-A commited on
Commit
665620b
1 Parent(s): 32fe07d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def QA_similarity(question, contexts, n_answers=1):
113
  return df
114
 
115
  # %% ../drive/MyDrive/Codici/Python/Gradio_App/SemanticSearch_QA-v1.ipynb 7
116
- answer_example = pd.DataFrame(contexts, columns=['Context'])
117
  a_text = gr.components.Dataframe(answer_example,col_count=(1,"fixed"))
118
 
119
  n_slider = gr.components.Slider(minimum=1, maximum = 10, label = "Select n answers (max= 10)",step = 1)
 
113
  return df
114
 
115
  # %% ../drive/MyDrive/Codici/Python/Gradio_App/SemanticSearch_QA-v1.ipynb 7
116
+ answer_example = pd.DataFrame(list(contexts), columns=['Context'])
117
  a_text = gr.components.Dataframe(answer_example,col_count=(1,"fixed"))
118
 
119
  n_slider = gr.components.Slider(minimum=1, maximum = 10, label = "Select n answers (max= 10)",step = 1)