Spaces:
Runtime error
Runtime error
make inference via APIs default in prompts
Browse files
app.py
CHANGED
@@ -325,7 +325,7 @@ def summarize_youtube_video(url,force_transcribe,use_transcribe_api=False,api_to
|
|
325 |
html = '<iframe width="100%" height="315" src="https://www.youtube.com/embed/" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
326 |
|
327 |
def change_transcribe_api(vis):
|
328 |
-
return gr.Checkbox(value=
|
329 |
|
330 |
def change_api_token(vis):
|
331 |
return gr.Textbox(visible=vis)
|
|
|
325 |
html = '<iframe width="100%" height="315" src="https://www.youtube.com/embed/" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
326 |
|
327 |
def change_transcribe_api(vis):
|
328 |
+
return gr.Checkbox(value=True, visible=vis)
|
329 |
|
330 |
def change_api_token(vis):
|
331 |
return gr.Textbox(visible=vis)
|