aashraychegu commited on
Commit
1ee35dc
·
1 Parent(s): 569d535

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import gradio as gr
2
  import os
3
 
4
- def greet(name):
5
  return os.system("""curl "https://www.mindat.org/imagecache/46/9c/03220450016186848702713.jpg" > out.jpg""")
6
 
7
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
8
  iface.launch()
 
1
  import gradio as gr
2
  import os
3
 
4
+ def greet():
5
  return os.system("""curl "https://www.mindat.org/imagecache/46/9c/03220450016186848702713.jpg" > out.jpg""")
6
 
7
+ with gr.Blocks() as iface:
8
+ btn = gr.Button("Run")
9
+ btn.click(fn=greet)
10
+
11
  iface.launch()