Spaces:
Runtime error
Runtime error
Bug fix
Browse files
app.py
CHANGED
@@ -55,6 +55,8 @@ def validate_and_get_tags(tags: str) -> List[str]:
|
|
55 |
tags = tags.split('\n')
|
56 |
if len(tags) > max_tags_count:
|
57 |
raise gr.Error(f'Validation error. The maximum allowed number of tags is {max_tags_count}.')
|
|
|
|
|
58 |
|
59 |
def validate_and_get_questions(questions: str) -> List[str]:
|
60 |
if not questions.strip():
|
|
|
55 |
tags = tags.split('\n')
|
56 |
if len(tags) > max_tags_count:
|
57 |
raise gr.Error(f'Validation error. The maximum allowed number of tags is {max_tags_count}.')
|
58 |
+
|
59 |
+
return tags
|
60 |
|
61 |
def validate_and_get_questions(questions: str) -> List[str]:
|
62 |
if not questions.strip():
|