Spaces:
Running
Running
import subprocess | |
import logging | |
from fastapi import FastAPI | |
from fastapi.responses import HTMLResponse | |
app = FastAPI() | |
subprocess.Popen(["python3", "TimeStampBuddy/cron_processor.py"]) | |
def welcome(): | |
return """ | |
<div> | |
<h1>Hello!</h1> | |
<p>This service powers the <a href="https://x.com/TimeStampBuddy" target="_blank" rel="noopener noreferrer">@TimeStampBuddy</a>'s activity on Twitter.</p> | |
<p>For more details, visit | |
<a href="https://github.com/Mihaiii/TimeStampBuddy" target="_blank" rel="noopener noreferrer">GitHub Repository</a>. | |
</p> | |
</div> | |
""" |