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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -39,9 +39,7 @@ def predict_mushroom(features):
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."
 
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."