Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ title = "<center><b>🍻 **Untappd Beer Rating Predictor**🍻</b></center>"
|
|
| 120 |
description1 = """
|
| 121 |
This app takes user-inputted beer characteristics to predict the most likely Untappd rating the beer would receive if brewed. The ratings are calculated on a 5-point scale using a model based on data pulled in June 2023.
|
| 122 |
|
| 123 |
-
- <b>
|
| 124 |
- The input variables in this model <b> explain 65% of the variation </b>in the Untappd beer score
|
| 125 |
|
| 126 |
"""
|
|
@@ -151,7 +151,7 @@ with gr.Blocks(title=title, theme=theme) as demo:
|
|
| 151 |
Markdown("<h2><center><b>Characteristics Affecting Rating Prediction</b></center></h2>")
|
| 152 |
local_plot = gr.Plot(label='Shap:')
|
| 153 |
percentile_title = Markdown(f"<h2><center><b>Untappd Rating Percentiles</b></center></h2>")
|
| 154 |
-
percentile_dict0 = gr.Label( label='Percentile', show_label=
|
| 155 |
|
| 156 |
submit_btn2 = gr.Button("Predict")
|
| 157 |
Markdown("""---""")
|
|
|
|
| 120 |
description1 = """
|
| 121 |
This app takes user-inputted beer characteristics to predict the most likely Untappd rating the beer would receive if brewed. The ratings are calculated on a 5-point scale using a model based on data pulled in June 2023.
|
| 122 |
|
| 123 |
+
- The model has a <b>Mean Average Error (MAE) of .12</b> and <b> Root Mean Squared Error (RMSE) of .16</b>
|
| 124 |
- The input variables in this model <b> explain 65% of the variation </b>in the Untappd beer score
|
| 125 |
|
| 126 |
"""
|
|
|
|
| 151 |
Markdown("<h2><center><b>Characteristics Affecting Rating Prediction</b></center></h2>")
|
| 152 |
local_plot = gr.Plot(label='Shap:')
|
| 153 |
percentile_title = Markdown(f"<h2><center><b>Untappd Rating Percentiles</b></center></h2>")
|
| 154 |
+
percentile_dict0 = gr.Label( label='Percentile', show_label=True, value = float )
|
| 155 |
|
| 156 |
submit_btn2 = gr.Button("Predict")
|
| 157 |
Markdown("""---""")
|