Spaces:
Running
Running
File size: 654 Bytes
8efce19 999fa5d d0ff585 b3adc22 8e18d18 0a9e54c a9f1f12 466eeae b3adc22 9675b3c b3adc22 27e12ac b3adc22 27e12ac b3adc22 d0ff585 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import subprocess
import logging
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 <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>
""" |