Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,10 +78,10 @@ def gradio_interface(image, weight):
|
|
78 |
receipt = create_receipt(fruit_name, weight, total_price)
|
79 |
return image, receipt
|
80 |
|
81 |
-
image_input = gr.
|
82 |
-
weight_input = gr.
|
83 |
-
image_output = gr.
|
84 |
-
receipt_output = gr.
|
85 |
|
86 |
gr.Interface(
|
87 |
fn=gradio_interface,
|
|
|
78 |
receipt = create_receipt(fruit_name, weight, total_price)
|
79 |
return image, receipt
|
80 |
|
81 |
+
image_input = gr.Image(label="Изображение с веб-камеры")
|
82 |
+
weight_input = gr.Number(label="Вес (кг)", default=1.0)
|
83 |
+
image_output = gr.Image(label="Распознанный фрукт")
|
84 |
+
receipt_output = gr.Image(label="Чек")
|
85 |
|
86 |
gr.Interface(
|
87 |
fn=gradio_interface,
|