Spaces:
Sleeping
Sleeping
trttung1610
commited on
Commit
·
04ee3a7
1
Parent(s):
1dbec60
Update app.py
Browse files
app.py
CHANGED
@@ -76,13 +76,12 @@ def predict_house_area(image_file):
|
|
76 |
worksheet.cell(row=2, column=1).value = image_file_name
|
77 |
worksheet.cell(row=2, column=2).value = predicted_area_sqm
|
78 |
|
79 |
-
temp_file =
|
80 |
workbook.save(temp_file)
|
81 |
|
82 |
return f"Predicted house square footage: {predicted_area_sqm:.2f} square meters", temp_file
|
83 |
|
84 |
inputs = [
|
85 |
-
gr.inputs.Textbox(label="Mã Phòng", type="text"),
|
86 |
gr.inputs.Image(label="Image")
|
87 |
]
|
88 |
|
|
|
76 |
worksheet.cell(row=2, column=1).value = image_file_name
|
77 |
worksheet.cell(row=2, column=2).value = predicted_area_sqm
|
78 |
|
79 |
+
temp_file = "predicted_area.xlsx"
|
80 |
workbook.save(temp_file)
|
81 |
|
82 |
return f"Predicted house square footage: {predicted_area_sqm:.2f} square meters", temp_file
|
83 |
|
84 |
inputs = [
|
|
|
85 |
gr.inputs.Image(label="Image")
|
86 |
]
|
87 |
|