Spaces:
Runtime error
Runtime error
Commit
·
1ee35dc
1
Parent(s):
569d535
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
| 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()
|