Spaces:
Sleeping
Sleeping
File size: 1,234 Bytes
a61be63 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import gradio as gr
def get_diamond_form():
with gr.Row():
carat = gr.Number(value=1.0, label="Carat")
cut = gr.Textbox(label="Cut")
color = gr.Textbox(label="Color")
clarity = gr.Textbox(label="Clarity")
depth = gr.Number(value=1.0, label="Depth")
return [carat, cut, color, clarity, depth]
def get_brand_product_form():
with gr.Row():
brand_name = gr.Textbox(label="Brand Name")
model_name = gr.Textbox(label="Model Name")
type_number = gr.Textbox(label="Type Number")
purchase_store = gr.Textbox(label="Purchase Store")
purchase_date = gr.DatePicker(label="Purchase Date")
purchase_price = gr.Number(value=1000.0, label="Purchase Price")
accessories = gr.Textbox(label="Accessories")
condition = gr.Textbox(label="Condition")
return [brand_name, model_name, type_number, purchase_store, purchase_date, purchase_price, accessories, condition]
gr_interface = gr.Interface(
fn=None,
inputs=[get_diamond_form(), get_brand_product_form()],
outputs="text",
title="Diamond and Brand Product Appraisal",
description="Please fill in the required information for appraisal."
)
gr_interface.launch() |