Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def solar_panel_evaluator(latitude, longitude, annual_energy_consumption):
|
|
| 114 |
output_html += f"<strong>Losses:</strong> {panel.get('losses', 'N/A')}%<br>"
|
| 115 |
output_html += f"<strong>Cost:</strong> ${panel.get('cost', 'N/A')}<br>"
|
| 116 |
output_html += f"<strong>Annual Energy Output:</strong> {panel.get('annual_energy', 'N/A'):.2f} kWh<br>"
|
| 117 |
-
output_html += f"<a href='{panel.get('url', '#')}' style='text-decoration: none; color: blue;' target='_blank'>View
|
| 118 |
output_html += "</div>"
|
| 119 |
|
| 120 |
output_html += "</div>"
|
|
@@ -130,7 +130,7 @@ iface = gr.Interface(
|
|
| 130 |
inputs=[
|
| 131 |
gr.Number(label="Latitude", minimum=-90, maximum=90, value=40.7128),
|
| 132 |
gr.Number(label="Longitude", minimum=-180, maximum=180, value=-74.0060),
|
| 133 |
-
gr.Number(label="Annual Energy Consumption (kWh)", minimum=0, maximum=200000000)
|
| 134 |
],
|
| 135 |
outputs=gr.HTML(),
|
| 136 |
title="Solar Panel Evaluator",
|
|
|
|
| 114 |
output_html += f"<strong>Losses:</strong> {panel.get('losses', 'N/A')}%<br>"
|
| 115 |
output_html += f"<strong>Cost:</strong> ${panel.get('cost', 'N/A')}<br>"
|
| 116 |
output_html += f"<strong>Annual Energy Output:</strong> {panel.get('annual_energy', 'N/A'):.2f} kWh<br>"
|
| 117 |
+
output_html += f"<a href='{panel.get('url', '#')}' style='text-decoration: none; color: blue;' target='_blank'>View</a>"
|
| 118 |
output_html += "</div>"
|
| 119 |
|
| 120 |
output_html += "</div>"
|
|
|
|
| 130 |
inputs=[
|
| 131 |
gr.Number(label="Latitude", minimum=-90, maximum=90, value=40.7128),
|
| 132 |
gr.Number(label="Longitude", minimum=-180, maximum=180, value=-74.0060),
|
| 133 |
+
gr.Number(label="Annual Energy Consumption (kWh)", minimum=0, maximum=200000000,value=2000)
|
| 134 |
],
|
| 135 |
outputs=gr.HTML(),
|
| 136 |
title="Solar Panel Evaluator",
|