Jirat Jaturanpinyo commited on
Commit
f978ed2
·
verified ·
1 Parent(s): 88fb16b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import gradio as gr
2
 
3
- def greet(RepositoryID, FileName):
4
- print(RepositoryID, FileName)
5
-
6
- demo = gr.Interface(
7
- fn=greet,
8
- inputs=["text", "text"],
9
- outputs=None,
10
- )
 
11
 
12
  demo.launch(quiet=True,share=False)
 
1
  import gradio as gr
2
 
3
+ with gr.Blocks() as demo:
4
+ RepositoryID = gr.Textbox(label="RepositoryID")
5
+ FileName = gr.Textbox(label="FileName")
6
+ Submit = gr.Button(label="Run")
7
+ Output = gr.Textbox("",readonly=True)
8
+
9
+ @button.observe
10
+ def button_click():
11
+ output_text.text = "Running... \n " + RepositoryID.value + " " + FileName.value
12
 
13
  demo.launch(quiet=True,share=False)