Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|