Spaces:
Sleeping
Sleeping
debug
Browse files
app.py
CHANGED
@@ -906,24 +906,5 @@ if TRANSCRIPTS: # 确保列表不为空
|
|
906 |
image.update(value=first_screenshot_path)
|
907 |
text.update(value=first_text)
|
908 |
|
909 |
-
# 假設 url params 有 video_id,yt_id=VIDEO_ID
|
910 |
-
# 如果有 yt_id,就貼上youtube_link
|
911 |
-
# if "yt_id" in gr.args:
|
912 |
-
# yt_id = gr.args["yt_id"]
|
913 |
-
# youtube_link.update(value=f"https://www.youtube.com/watch?v={yt_id}")
|
914 |
-
|
915 |
-
# def predict(text, request: gr.Request):
|
916 |
-
# parameters = request.get_params()
|
917 |
-
# return {
|
918 |
-
# "parameters": parameters,
|
919 |
-
# }
|
920 |
-
|
921 |
-
# print(predict("hello", gr.Request.get_params("yt_id")))
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
print(dict(gr.Request().request.query_params))
|
928 |
|
929 |
demo.launch(allowed_paths=["videos"])
|
|
|
906 |
image.update(value=first_screenshot_path)
|
907 |
text.update(value=first_text)
|
908 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
909 |
|
910 |
demo.launch(allowed_paths=["videos"])
|