GlobalBusinessAdvisors
commited on
Commit
•
4018334
1
Parent(s):
63ffaf9
Update ui/gradio_ui.py
Browse files- ui/gradio_ui.py +0 -2
ui/gradio_ui.py
CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
|
|
2 |
|
3 |
def create_ui():
|
4 |
def generate_plan(property_type, retrofit_area, building_age, blueprints, heating_system, cooling_system, insulation_quality, known_issues, energy_source, windows, monthly_bills, mortgage, mortgage_years, gross_income, monthly_expenses, credit_score, financing_term, preferred_term, budget, financing_interest):
|
5 |
-
# Dummy function for generating a retrofit plan
|
6 |
retrofit_plan = (
|
7 |
f"Property Type: {property_type}\n"
|
8 |
f"Retrofit Area: {retrofit_area} sqft\n"
|
@@ -28,7 +27,6 @@ def create_ui():
|
|
28 |
return retrofit_plan
|
29 |
|
30 |
def calculate_cost(retrofit_area, insulation_quality, known_issues, energy_source, windows):
|
31 |
-
# Dummy function for calculating retrofit costs
|
32 |
base_cost = 5000
|
33 |
area_cost = retrofit_area * 10
|
34 |
insulation_cost = {'Poor': 3000, 'Average': 2000, 'Good': 1000, 'Excellent': 500}[insulation_quality]
|
|
|
2 |
|
3 |
def create_ui():
|
4 |
def generate_plan(property_type, retrofit_area, building_age, blueprints, heating_system, cooling_system, insulation_quality, known_issues, energy_source, windows, monthly_bills, mortgage, mortgage_years, gross_income, monthly_expenses, credit_score, financing_term, preferred_term, budget, financing_interest):
|
|
|
5 |
retrofit_plan = (
|
6 |
f"Property Type: {property_type}\n"
|
7 |
f"Retrofit Area: {retrofit_area} sqft\n"
|
|
|
27 |
return retrofit_plan
|
28 |
|
29 |
def calculate_cost(retrofit_area, insulation_quality, known_issues, energy_source, windows):
|
|
|
30 |
base_cost = 5000
|
31 |
area_cost = retrofit_area * 10
|
32 |
insulation_cost = {'Poor': 3000, 'Average': 2000, 'Good': 1000, 'Excellent': 500}[insulation_quality]
|