joaogante HF staff commited on
Commit
b258678
·
1 Parent(s): 383f0d7

add basic logic

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -56,7 +56,7 @@ INIT_MARKDOWN = """
56
 
57
   
58
 
59
- 👈 ... and a problem type...
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 ("" or None) or problem_type in ("" or None):
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
  """