Spaces:
Sleeping
Sleeping
Lakpriya Seneviratna
commited on
Commit
·
cbd5fd3
1
Parent(s):
cf77cbd
chore: Update FastAPI route for TikTok verification code
Browse files- app.py +3 -3
- tiktok04mGYqnihbw3hRUasbHWxXu03zEGxXH9.txt +1 -0
app.py
CHANGED
@@ -27,7 +27,7 @@ import soundfile as sf
|
|
27 |
from fastapi import FastAPI
|
28 |
import uuid
|
29 |
from fastapi.middleware.cors import CORSMiddleware
|
30 |
-
from fastapi.responses import
|
31 |
|
32 |
# from tortoise_tts import TextToSpeech
|
33 |
|
@@ -522,9 +522,9 @@ app.add_middleware(
|
|
522 |
def api_home():
|
523 |
return {'detail': 'Welcome to VideoGen!'}
|
524 |
|
525 |
-
@app.get("/
|
526 |
def api_tick():
|
527 |
-
return
|
528 |
|
529 |
@app.get("/generate_video")
|
530 |
def generate_video():
|
|
|
27 |
from fastapi import FastAPI
|
28 |
import uuid
|
29 |
from fastapi.middleware.cors import CORSMiddleware
|
30 |
+
from fastapi.responses import FileResponse
|
31 |
|
32 |
# from tortoise_tts import TextToSpeech
|
33 |
|
|
|
522 |
def api_home():
|
523 |
return {'detail': 'Welcome to VideoGen!'}
|
524 |
|
525 |
+
@app.get("/tiktok04mGYqnihbw3hRUasbHWxXu03zEGxXH9.txt")
|
526 |
def api_tick():
|
527 |
+
return FileResponse("/tiktok04mGYqnihbw3hRUasbHWxXu03zEGxXH9.txt")
|
528 |
|
529 |
@app.get("/generate_video")
|
530 |
def generate_video():
|
tiktok04mGYqnihbw3hRUasbHWxXu03zEGxXH9.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
tiktok-developers-site-verification=04mGYqnihbw3hRUasbHWxXu03zEGxXH9
|