joaogante HF staff commited on
Commit
a312531
1 Parent(s): a4fa1bd

add suggestions and/or suggestions logic

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -48,6 +48,8 @@ INIT_MARKDOWN = """
48
 
49
   
50
 
 
 
51
  👈 Fill in as much data as you can...
52
 
53
   
@@ -56,21 +58,32 @@ INIT_MARKDOWN = """
56
 
57
   
58
 
 
 
59
  👈 ... then click here!
60
  """
61
 
62
  DEMO_MARKDOWN = """
63
- ⚠️ This is still a demo 🤗 Working sections include "Length", "Quality", and "Speed". ⚠️
64
  """
65
 
66
  SUGGETIONS_HEADER = """
67
- Here is a list of suggestions for you:
68
  """
69
 
70
  TASK_MODEL_MISMATCH = """
71
- <details><summary>{count}. Select a better model for your task</summary>
 
 
 
 
 
 
 
72
 
73
- The selected model ({model_name}) is not appropriate for the task you selected {task_type}).
 
 
74
  </details>
75
  """
76
  # =====================================================================================================================
 
48
 
49
  &nbsp;
50
 
51
+ &nbsp;
52
+
53
  👈 Fill in as much data as you can...
54
 
55
  &nbsp;
 
58
 
59
  &nbsp;
60
 
61
+ &nbsp;
62
+
63
  👈 ... then click here!
64
  """
65
 
66
  DEMO_MARKDOWN = """
67
+ ⚠️ This is still a demo 🤗 Working sections include "Length" and "Quality" ⚠️
68
  """
69
 
70
  SUGGETIONS_HEADER = """
71
+ Here is a list of suggestions for you
72
  """
73
 
74
  TASK_MODEL_MISMATCH = """
75
+ <details><summary>{count}. Select a model better suited for your task</summary>
76
+
77
+ 🤔 Why?
78
+ The selected model ("{model_name}") isn't tagged as a good fit for the task you selected ("{task_type}").
79
+
80
+ 🤗 How?
81
+ Our recommendation is to go to our [tasks page](https://huggingface.co/tasks) and select one of our suggested
82
+ models as a starting point.
83
 
84
+ ⚠️ Caveats
85
+ The tags of a model are defined by the community and are not always accurate. If you think the model is incorrectly
86
+ tagged or missing a tag, please open an issue on the [model card](https://huggingface.co/{model_name}/tree/main).
87
  </details>
88
  """
89
  # =====================================================================================================================