JohanBeytell commited on
Commit
ef49e9a
·
verified ·
1 Parent(s): 6044158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -39,7 +39,9 @@ def predict_mushroom(features):
39
 
40
  demo = gr.Interface(
41
  fn=predict_mushroom,
42
- inputs=[gr.Dropdown(choices=list(options.keys()), label=feature) for feature, options in feature_options.items()],
 
 
43
  outputs="text",
44
  title="MycoNom - Mushroom Edibility Classifier",
45
  description="Select the mushroom features to determine if it's edible or poisonous.<br><br>**Disclaimer:** This model is for **educational purposes only** and should not be used for real-life mushroom classification or any decision-making processes related to the consumption of mushrooms. While the model performs well on the provided dataset, it has not been thoroughly validated for real-world scenarios and may not accurately detect poisonous mushrooms in all conditions. Always consult an expert or use trusted resources when identifying mushrooms."
 
39
 
40
  demo = gr.Interface(
41
  fn=predict_mushroom,
42
+ inputs=gr.Dict(components=[
43
+ gr.Dropdown(choices=list(options.keys()), label=feature) for feature, options in feature_options.items()
44
+ ]),
45
  outputs="text",
46
  title="MycoNom - Mushroom Edibility Classifier",
47
  description="Select the mushroom features to determine if it's edible or poisonous.<br><br>**Disclaimer:** This model is for **educational purposes only** and should not be used for real-life mushroom classification or any decision-making processes related to the consumption of mushrooms. While the model performs well on the provided dataset, it has not been thoroughly validated for real-world scenarios and may not accurately detect poisonous mushrooms in all conditions. Always consult an expert or use trusted resources when identifying mushrooms."