tbitai commited on
Commit
0890fb9
·
verified ·
1 Parent(s): 0c26837

Move models info to dropdown

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -94,7 +94,8 @@ demo = gr.Interface(
94
  ),
95
  fn=predict,
96
  inputs=[
97
- gr.Dropdown(choices=MODELS, value=BAYES, label="Model"),
 
98
  gr.TextArea(label="Email"),
99
  ],
100
  additional_inputs_accordion=gr.Accordion("Additional configuration for Bayes", open=False),
@@ -106,7 +107,7 @@ demo = gr.Interface(
106
  ],
107
  outputs=[gr.Number(label="Spam probability")],
108
  title="Bayes or Spam?",
109
- description="Choose your model, and predict if your email is a spam! 📨<br>Learn more about the models [here](https://huggingface.co/collections/tbitai/bayes-or-spam-6700033fa145e298ec849249).",
110
  examples=[
111
  [NN, "Enron actuals for June 26, 2000", None, None],
112
  [BAYES, "Stop the aging clock\nNerissa", True, DEFAULT_INTR_THRESHOLD],
 
94
  ),
95
  fn=predict,
96
  inputs=[
97
+ gr.Dropdown(choices=MODELS, value=BAYES, label="Model",
98
+ info="Learn more about the models [here](https://huggingface.co/collections/tbitai/bayes-or-spam-6700033fa145e298ec849249)"),
99
  gr.TextArea(label="Email"),
100
  ],
101
  additional_inputs_accordion=gr.Accordion("Additional configuration for Bayes", open=False),
 
107
  ],
108
  outputs=[gr.Number(label="Spam probability")],
109
  title="Bayes or Spam?",
110
+ description="Choose your model, and predict if your email is a spam! 📨",
111
  examples=[
112
  [NN, "Enron actuals for June 26, 2000", None, None],
113
  [BAYES, "Stop the aging clock\nNerissa", True, DEFAULT_INTR_THRESHOLD],