Spaces:
Sleeping
Sleeping
Lakpriya Seneviratna
commited on
Commit
·
cf77cbd
1
Parent(s):
adc97bd
chore: Update FastAPI route for generating video
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@ import soundfile as sf
|
|
27 |
from fastapi import FastAPI
|
28 |
import uuid
|
29 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
30 |
|
31 |
# from tortoise_tts import TextToSpeech
|
32 |
|
@@ -523,9 +524,7 @@ def api_home():
|
|
523 |
|
524 |
@app.get("/tiktokEGiU9uygNn8tx9xkjWJOFxpWpGg3pPOZ.txt")
|
525 |
def api_tick():
|
526 |
-
return "tiktok-developers-site-verification=pKoa6IinAzrf27VzPpj3m9188EinPgU5"
|
527 |
-
|
528 |
-
|
529 |
|
530 |
@app.get("/generate_video")
|
531 |
def generate_video():
|
|
|
27 |
from fastapi import FastAPI
|
28 |
import uuid
|
29 |
from fastapi.middleware.cors import CORSMiddleware
|
30 |
+
from fastapi.responses import PlainTextResponse
|
31 |
|
32 |
# from tortoise_tts import TextToSpeech
|
33 |
|
|
|
524 |
|
525 |
@app.get("/tiktokEGiU9uygNn8tx9xkjWJOFxpWpGg3pPOZ.txt")
|
526 |
def api_tick():
|
527 |
+
return PlainTextResponse("tiktok-developers-site-verification=pKoa6IinAzrf27VzPpj3m9188EinPgU5")
|
|
|
|
|
528 |
|
529 |
@app.get("/generate_video")
|
530 |
def generate_video():
|