Spaces:
Sleeping
Sleeping
Commit
·
23da5f0
1
Parent(s):
4e02cab
Create app2.py
Browse files
app2.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
date_picker = gr.HTML("""<input type = "date" id = "date" name = "date">""")
|
5 |
+
submit_btn = gr.Button(label = "Run")
|
6 |
+
output = gr.Textbox()
|
7 |
+
|
8 |
+
submit_btn.click(None, None, output, _js='(output) => {return (document.getElementById("date")).value;}')
|
9 |
+
|
10 |
+
|
11 |
+
demo.queue()
|
12 |
+
demo.launch(debug = True, share = False)
|