wickedreg commited on
Commit
ae10d96
1 Parent(s): 69515dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.inputs.Image(label="Изображение с веб-камеры")
82
- weight_input = gr.inputs.Number(label="Вес (кг)", default=1.0)
83
- image_output = gr.outputs.Image(label="Распознанный фрукт")
84
- receipt_output = gr.outputs.Image(label="Чек")
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,