Spaces:
Runtime error
Runtime error
Update app.py
Browse filesupdated headers
app.py
CHANGED
|
@@ -3,18 +3,18 @@ import pandas as pd
|
|
| 3 |
from hijri_converter import Gregorian, Hijri
|
| 4 |
from datetime import date, timedelta
|
| 5 |
|
| 6 |
-
# Set the title of the app
|
| 7 |
-
st.title("Date Converter with Deadlines")
|
| 8 |
-
|
| 9 |
# Add a sidebar with radio buttons
|
| 10 |
st.sidebar.title("Navigation")
|
| 11 |
option = st.sidebar.radio(
|
| 12 |
"Choose an option",
|
| 13 |
-
("Three Month
|
| 14 |
)
|
| 15 |
|
| 16 |
# Function to calculate three month deadlines
|
| 17 |
def three_month_deadlines():
|
|
|
|
|
|
|
|
|
|
| 18 |
# Create a date picker for the user to select a Gregorian date
|
| 19 |
start_date = st.date_input("Select a Gregorian start date")
|
| 20 |
|
|
@@ -91,6 +91,9 @@ def three_month_deadlines():
|
|
| 91 |
|
| 92 |
# Function to calculate 60 days deadlines
|
| 93 |
def sixty_days_deadlines():
|
|
|
|
|
|
|
|
|
|
| 94 |
# Use a date picker for the user to select a Gregorian date
|
| 95 |
start_date = st.date_input("Select a Gregorian start date")
|
| 96 |
|
|
@@ -128,7 +131,7 @@ def sixty_days_deadlines():
|
|
| 128 |
st.dataframe(df)
|
| 129 |
|
| 130 |
# Sidebar navigation using radio buttons
|
| 131 |
-
if option == "Three Month
|
| 132 |
three_month_deadlines()
|
| 133 |
elif option == "60 Days Deadline Converter":
|
| 134 |
sixty_days_deadlines()
|
|
|
|
| 3 |
from hijri_converter import Gregorian, Hijri
|
| 4 |
from datetime import date, timedelta
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# Add a sidebar with radio buttons
|
| 7 |
st.sidebar.title("Navigation")
|
| 8 |
option = st.sidebar.radio(
|
| 9 |
"Choose an option",
|
| 10 |
+
("Three Month Deadline Converter", "60 Days Deadline Converter")
|
| 11 |
)
|
| 12 |
|
| 13 |
# Function to calculate three month deadlines
|
| 14 |
def three_month_deadlines():
|
| 15 |
+
# Set the title for the Three Month Deadline Converter
|
| 16 |
+
st.title("Three Month Deadline Converter")
|
| 17 |
+
|
| 18 |
# Create a date picker for the user to select a Gregorian date
|
| 19 |
start_date = st.date_input("Select a Gregorian start date")
|
| 20 |
|
|
|
|
| 91 |
|
| 92 |
# Function to calculate 60 days deadlines
|
| 93 |
def sixty_days_deadlines():
|
| 94 |
+
# Set the title for the 60 Days Deadline Converter
|
| 95 |
+
st.title("60 Days Deadline Converter")
|
| 96 |
+
|
| 97 |
# Use a date picker for the user to select a Gregorian date
|
| 98 |
start_date = st.date_input("Select a Gregorian start date")
|
| 99 |
|
|
|
|
| 131 |
st.dataframe(df)
|
| 132 |
|
| 133 |
# Sidebar navigation using radio buttons
|
| 134 |
+
if option == "Three Month Deadline Converter":
|
| 135 |
three_month_deadlines()
|
| 136 |
elif option == "60 Days Deadline Converter":
|
| 137 |
sixty_days_deadlines()
|