Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,7 +118,7 @@ def apply_code(coded_df, file_id, full_text, segment, code, code_list, *metadata
|
|
| 118 |
if not file_id:
|
| 119 |
return coded_df, code_list, "⚠️ Upload a file first."
|
| 120 |
|
| 121 |
-
#
|
| 122 |
if code not in code_list:
|
| 123 |
code_list.append(code)
|
| 124 |
|
|
|
|
| 118 |
if not file_id:
|
| 119 |
return coded_df, code_list, "⚠️ Upload a file first."
|
| 120 |
|
| 121 |
+
# Add new code to code list if not exists
|
| 122 |
if code not in code_list:
|
| 123 |
code_list.append(code)
|
| 124 |
|