Spaces:
Sleeping
Sleeping
modified: app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ load_dotenv()
|
|
| 23 |
logging.basicConfig(level=logging.DEBUG)
|
| 24 |
|
| 25 |
# Set page configuration
|
| 26 |
-
st.set_page_config(page_title="
|
| 27 |
#ADDD
|
| 28 |
# Custom CSS to improve the app's appearance
|
| 29 |
st.markdown("""
|
|
@@ -73,6 +73,7 @@ SCOPES = ['https://www.googleapis.com/auth/userinfo.email', 'https://www.googlea
|
|
| 73 |
# Function to create OAuth flow
|
| 74 |
def create_flow():
|
| 75 |
redirect_uri = "https://meng21-gradeview.hf.space/" # Update this with your Streamlit app's URL
|
|
|
|
| 76 |
logging.debug(f"Creating flow with redirect URI: {redirect_uri}")
|
| 77 |
flow = Flow.from_client_config(
|
| 78 |
client_config=CLIENT_CONFIG,
|
|
@@ -111,7 +112,7 @@ def load_data():
|
|
| 111 |
|
| 112 |
# Main function to run the Streamlit app
|
| 113 |
def main():
|
| 114 |
-
st.title('π
|
| 115 |
st.markdown("---")
|
| 116 |
|
| 117 |
if not is_logged_in():
|
|
|
|
| 23 |
logging.basicConfig(level=logging.DEBUG)
|
| 24 |
|
| 25 |
# Set page configuration
|
| 26 |
+
st.set_page_config(page_title="Midterm Grade for 2nd Sem 2024-2025", page_icon="π", layout="centered")
|
| 27 |
#ADDD
|
| 28 |
# Custom CSS to improve the app's appearance
|
| 29 |
st.markdown("""
|
|
|
|
| 73 |
# Function to create OAuth flow
|
| 74 |
def create_flow():
|
| 75 |
redirect_uri = "https://meng21-gradeview.hf.space/" # Update this with your Streamlit app's URL
|
| 76 |
+
# redirect_uri = "http://192.168.1.18:8501" # local dev
|
| 77 |
logging.debug(f"Creating flow with redirect URI: {redirect_uri}")
|
| 78 |
flow = Flow.from_client_config(
|
| 79 |
client_config=CLIENT_CONFIG,
|
|
|
|
| 112 |
|
| 113 |
# Main function to run the Streamlit app
|
| 114 |
def main():
|
| 115 |
+
st.title('π Midterm Grade for 2nd Sem 2024-2025')
|
| 116 |
st.markdown("---")
|
| 117 |
|
| 118 |
if not is_logged_in():
|