dailingx's picture
Create app.py
5b0a718 verified
raw
history blame
532 Bytes
import os
import sys
import gradio as gr
def fetch(
key_word: str
):
return key_word
with gr.Blocks() as demo:
gr.Markdown('''OpenVideo Youtube fetch demo''')
with gr.Row():
with gr.Column():
kw_input_text = gr.Text(label='Keyword')
fetch_btn = gr.Button("Fetch")
result = gr.Text()
fetch_btn.click(fn=fetch, inputs=[kw_input_text], outputs=[result])
if __name__ == "__main__":
demo.queue(max_size=1)
demo.launch(share=False, max_threads=1)