jonathanjordan21 commited on
Commit
87e4b85
·
verified ·
1 Parent(s): ab28310

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -161,7 +161,7 @@ async def google_search(q: str, delimiter: str = "\n---\n", sites: Annotated[lis
161
 
162
  @app.get("/tiktok_video_details")
163
  async def tiktok_video_details(username: str, video_id:str):
164
- if username[0] != @:
165
  username = "@" + username
166
  url = f"https://www.tiktok.com/{username}/video/{video_id}"
167
  # user_agent = "LinkedInBot"
 
161
 
162
  @app.get("/tiktok_video_details")
163
  async def tiktok_video_details(username: str, video_id:str):
164
+ if username[0] != "@":
165
  username = "@" + username
166
  url = f"https://www.tiktok.com/{username}/video/{video_id}"
167
  # user_agent = "LinkedInBot"