Mihaiii commited on
Commit
b3adc22
·
verified ·
1 Parent(s): 9675b3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -1,9 +1,18 @@
1
  import subprocess
2
  from fastapi import FastAPI
 
3
  app = FastAPI()
4
 
5
  subprocess.Popen(["python3", "TimeStampBuddy/cron_processor.py"])
6
 
7
- @app.get("/")
8
  def welcome():
9
- return "Hello! This service powers the TimeStampBuddy activity on Twitter. For more details, visit https://github.com/Mihaiii/TimeStampBuddy ."
 
 
 
 
 
 
 
 
 
1
  import subprocess
2
  from fastapi import FastAPI
3
+ from fastapi.responses import HTMLResponse
4
  app = FastAPI()
5
 
6
  subprocess.Popen(["python3", "TimeStampBuddy/cron_processor.py"])
7
 
8
+ @app.get("/", response_class=HTMLResponse)
9
  def welcome():
10
+ return """
11
+ <div>
12
+ <h1>Hello!</h1>
13
+ <p>This service powers the TimeStampBuddy activity on Twitter.</p>
14
+ <p>For more details, visit
15
+ <a href="https://github.com/Mihaiii/TimeStampBuddy">GitHub Repository</a>.
16
+ </p>
17
+ </div>
18
+ """