Spaces:
Runtime error
Runtime error
add basic logic
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ INIT_MARKDOWN = """
|
|
56 |
|
57 |
|
58 |
|
59 |
-
👈 ...
|
60 |
|
61 |
|
62 |
|
@@ -82,7 +82,7 @@ def is_valid_task_for_model(model_name, task_type):
|
|
82 |
|
83 |
|
84 |
def get_suggestions(task_type, model_name, problem_type):
|
85 |
-
if task_type in (""
|
86 |
return INIT_MARKDOWN
|
87 |
return ""
|
88 |
# =====================================================================================================================
|
@@ -127,6 +127,8 @@ with demo:
|
|
127 |
|
128 |
gr.Markdown(
|
129 |
"""
|
|
|
|
|
130 |
Is your problem not on the list? Need more suggestions? Have you spotted an error? Please open a
|
131 |
[new discussion](https://huggingface.co/spaces/joaogante/generate_quality_improvement/discussions) 🙏
|
132 |
"""
|
|
|
56 |
|
57 |
|
58 |
|
59 |
+
👈 ... what you'd like to see improved...
|
60 |
|
61 |
|
62 |
|
|
|
82 |
|
83 |
|
84 |
def get_suggestions(task_type, model_name, problem_type):
|
85 |
+
if task_type in ("", None) or problem_type in ("", None):
|
86 |
return INIT_MARKDOWN
|
87 |
return ""
|
88 |
# =====================================================================================================================
|
|
|
127 |
|
128 |
gr.Markdown(
|
129 |
"""
|
130 |
+
|
131 |
+
|
132 |
Is your problem not on the list? Need more suggestions? Have you spotted an error? Please open a
|
133 |
[new discussion](https://huggingface.co/spaces/joaogante/generate_quality_improvement/discussions) 🙏
|
134 |
"""
|