TimeStampBuddy / app.py
Mihaiii's picture
Update app.py
b3adc22 verified
raw
history blame
509 Bytes
import subprocess
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
app = FastAPI()
subprocess.Popen(["python3", "TimeStampBuddy/cron_processor.py"])
@app.get("/", response_class=HTMLResponse)
def welcome():
return """
<div>
<h1>Hello!</h1>
<p>This service powers the TimeStampBuddy activity on Twitter.</p>
<p>For more details, visit
<a href="https://github.com/Mihaiii/TimeStampBuddy">GitHub Repository</a>.
</p>
</div>
"""