Rsnarsna commited on
Commit
2a5fdb7
·
verified ·
1 Parent(s): cb8fa9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- 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)
 
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)