Spaces:
Runtime error
Runtime error
Commit ·
777771f
1
Parent(s): 8b7987b
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
def greet():
|
| 5 |
-
print(
|
| 6 |
-
f = open("./out.jpg","wb+")
|
| 7 |
-
f.close()
|
| 8 |
-
print(f)
|
| 9 |
-
return os.system("""curl "https://www.mindat.org/imagecache/46/9c/03220450016186848702713.jpg" > ./out.jpg""")
|
| 10 |
|
| 11 |
with gr.Blocks() as iface:
|
| 12 |
btn = gr.Button("Run")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
+
import requests
|
| 4 |
+
|
| 5 |
+
url = "https://www.mindat.org/imagecache/46/9c/03220450016186848702713.jpg"
|
| 6 |
|
| 7 |
def greet():
|
| 8 |
+
print(requests.get(url).content)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
with gr.Blocks() as iface:
|
| 11 |
btn = gr.Button("Run")
|