pgurazada1 commited on
Commit
0405cf9
1 Parent(s): 65d05cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Soft(),
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",