Lakpriya Seneviratna commited on
Commit
cbd5fd3
·
1 Parent(s): cf77cbd

chore: Update FastAPI route for TikTok verification code

Browse files
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 PlainTextResponse
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("/tiktokEGiU9uygNn8tx9xkjWJOFxpWpGg3pPOZ.txt")
526
  def api_tick():
527
- return PlainTextResponse("tiktok-developers-site-verification=pKoa6IinAzrf27VzPpj3m9188EinPgU5")
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