Guiyom commited on
Commit
8002983
·
1 Parent(s): 260e940

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -82,11 +82,11 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
82
  return messages_history1, messages_history2, messages_history3
83
 
84
  def getlist(df):
85
- # Extract distinct values from the first column
86
- distinct_values = df.iloc[:, 0].unique()
87
 
88
  # Join the distinct values into a string separated by ", "
89
- distinct_values_string = ",".join(str(value) for value in distinct_values)
90
 
91
  return distinct_values_string
92
 
 
82
  return messages_history1, messages_history2, messages_history3
83
 
84
  def getlist(df):
85
+ # Extract distinct values from the first column excluding the header
86
+ distinct_values = df.iloc[1:, 0].unique()
87
 
88
  # Join the distinct values into a string separated by ", "
89
+ distinct_values_string = ", ".join(str(value) for value in distinct_values)
90
 
91
  return distinct_values_string
92