Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import ffmpeg
|
|
14 |
from yidong import YiDong
|
15 |
|
16 |
API_URL_TEMPLATE = "https://api-yidong.lingyiwanwu.com/v1/ops/api_key?user_email={user_email}&user_source=huggingface"
|
17 |
-
model = whisper.load_model("
|
18 |
audio_clipper = VideoClipper(model)
|
19 |
|
20 |
def get_user_email(oauth_token: gr.OAuthToken | None) -> str | None:
|
@@ -181,7 +181,7 @@ with gr.Blocks() as clip_service:
|
|
181 |
youtube_url = gr.Textbox(label="🔗 Youtube视频链接|Youtube Video URL")
|
182 |
download_button = gr.Button("📥 下载 | Download", variant="primary")
|
183 |
video_input = gr.Video(label="视频输入 | Video Input")
|
184 |
-
audio_input = gr.Audio(label="音频输入 | Audio Input")
|
185 |
with gr.Column():
|
186 |
gr.Examples(['https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ClipVideo/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%A4%9A%E8%AF%BB%E4%B9%A6%EF%BC%9F%E8%BF%99%E6%98%AF%E6%88%91%E5%90%AC%E8%BF%87%E6%9C%80%E5%A5%BD%E7%9A%84%E7%AD%94%E6%A1%88-%E7%89%87%E6%AE%B5.mp4',
|
187 |
'https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ClipVideo/2022%E4%BA%91%E6%A0%96%E5%A4%A7%E4%BC%9A_%E7%89%87%E6%AE%B52.mp4',
|
|
|
14 |
from yidong import YiDong
|
15 |
|
16 |
API_URL_TEMPLATE = "https://api-yidong.lingyiwanwu.com/v1/ops/api_key?user_email={user_email}&user_source=huggingface"
|
17 |
+
model = whisper.load_model("large-v3")
|
18 |
audio_clipper = VideoClipper(model)
|
19 |
|
20 |
def get_user_email(oauth_token: gr.OAuthToken | None) -> str | None:
|
|
|
181 |
youtube_url = gr.Textbox(label="🔗 Youtube视频链接|Youtube Video URL")
|
182 |
download_button = gr.Button("📥 下载 | Download", variant="primary")
|
183 |
video_input = gr.Video(label="视频输入 | Video Input")
|
184 |
+
audio_input = gr.Audio(label="音频输入 | Audio Input", visible=False)
|
185 |
with gr.Column():
|
186 |
gr.Examples(['https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ClipVideo/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%A4%9A%E8%AF%BB%E4%B9%A6%EF%BC%9F%E8%BF%99%E6%98%AF%E6%88%91%E5%90%AC%E8%BF%87%E6%9C%80%E5%A5%BD%E7%9A%84%E7%AD%94%E6%A1%88-%E7%89%87%E6%AE%B5.mp4',
|
187 |
'https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ClipVideo/2022%E4%BA%91%E6%A0%96%E5%A4%A7%E4%BC%9A_%E7%89%87%E6%AE%B52.mp4',
|