Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -236,11 +236,11 @@ html_content = """
|
|
236 |
# Endpoint to display the home page with the email processor's status
|
237 |
@app.get("/", response_class=HTMLResponse)
|
238 |
async def home():
|
239 |
-
service = authenticate_gmail()
|
240 |
-
logger.info(service)
|
241 |
-
print(service)
|
242 |
-
if service:
|
243 |
-
|
244 |
global running
|
245 |
status = "Running" if running else "Stopped"
|
246 |
return HTMLResponse(content=html_content.replace("{{ status }}", status), status_code=200)
|
|
|
236 |
# Endpoint to display the home page with the email processor's status
|
237 |
@app.get("/", response_class=HTMLResponse)
|
238 |
async def home():
|
239 |
+
# service = authenticate_gmail()
|
240 |
+
# logger.info(service)
|
241 |
+
# print(service)
|
242 |
+
# if service:
|
243 |
+
# get_latest_email(service)
|
244 |
global running
|
245 |
status = "Running" if running else "Stopped"
|
246 |
return HTMLResponse(content=html_content.replace("{{ status }}", status), status_code=200)
|