Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ type_input = gr.Dropdown(['Natural', 'Lab Grown'], label="Type")
|
|
34 |
hf_token = os.environ["HF_TOKEN"]
|
35 |
hf_writer = gr.HuggingFaceDatasetSaver(hf_token, "diamond-price-predictor-logs")
|
36 |
|
37 |
-
model_output = gr.Label(label="Predicted Price")
|
38 |
|
39 |
def predict_price(carat, shape, cut, color, clarity, report, type):
|
40 |
sample = {
|
@@ -55,7 +55,7 @@ demo = gr.Interface(
|
|
55 |
inputs=[carat_input, shape_input, cut_input, color_input,
|
56 |
clarity_input, report_input, type_input],
|
57 |
outputs=model_output,
|
58 |
-
theme=gr.themes.
|
59 |
title="Diamond Price Predictor",
|
60 |
description="This API allows you to predict the price of a diamond given its attributes",
|
61 |
allow_flagging="auto",
|
|
|
34 |
hf_token = os.environ["HF_TOKEN"]
|
35 |
hf_writer = gr.HuggingFaceDatasetSaver(hf_token, "diamond-price-predictor-logs")
|
36 |
|
37 |
+
model_output = gr.Label(label="Predicted Price (USD)")
|
38 |
|
39 |
def predict_price(carat, shape, cut, color, clarity, report, type):
|
40 |
sample = {
|
|
|
55 |
inputs=[carat_input, shape_input, cut_input, color_input,
|
56 |
clarity_input, report_input, type_input],
|
57 |
outputs=model_output,
|
58 |
+
theme=gr.themes.Glass(),
|
59 |
title="Diamond Price Predictor",
|
60 |
description="This API allows you to predict the price of a diamond given its attributes",
|
61 |
allow_flagging="auto",
|