Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,22 @@ from datetime import datetime
|
|
| 16 |
load_dotenv()
|
| 17 |
GROQ_API_KEY = os.getenv('GROQ_API_KEY')
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Helper functions for calculations
|
| 20 |
def calculate_h2_production(method, water_quantity, energy_input, current_density, voltage):
|
| 21 |
"""Calculate hydrogen production based on input parameters"""
|
|
|
|
| 16 |
load_dotenv()
|
| 17 |
GROQ_API_KEY = os.getenv('GROQ_API_KEY')
|
| 18 |
|
| 19 |
+
# Custom CSS to make the page full-windowed
|
| 20 |
+
st.markdown(
|
| 21 |
+
"""
|
| 22 |
+
<style>
|
| 23 |
+
.stApp {
|
| 24 |
+
max-width: 100%;
|
| 25 |
+
padding: 0;
|
| 26 |
+
}
|
| 27 |
+
.stButton>button {
|
| 28 |
+
width: 100%;
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
""",
|
| 32 |
+
unsafe_allow_html=True
|
| 33 |
+
)
|
| 34 |
+
|
| 35 |
# Helper functions for calculations
|
| 36 |
def calculate_h2_production(method, water_quantity, energy_input, current_density, voltage):
|
| 37 |
"""Calculate hydrogen production based on input parameters"""
|