dailingx commited on
Commit
5b0a718
·
verified ·
1 Parent(s): fbd04b5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ import gradio as gr
4
+
5
+
6
+ def fetch(
7
+ key_word: str
8
+ ):
9
+ return key_word
10
+
11
+
12
+ with gr.Blocks() as demo:
13
+ gr.Markdown('''OpenVideo Youtube fetch demo''')
14
+ with gr.Row():
15
+ with gr.Column():
16
+ kw_input_text = gr.Text(label='Keyword')
17
+ fetch_btn = gr.Button("Fetch")
18
+ result = gr.Text()
19
+
20
+ fetch_btn.click(fn=fetch, inputs=[kw_input_text], outputs=[result])
21
+
22
+
23
+ if __name__ == "__main__":
24
+ demo.queue(max_size=1)
25
+ demo.launch(share=False, max_threads=1)