Spaces:
Sleeping
Sleeping
filipzawadka
commited on
Commit
•
6390edb
1
Parent(s):
9089bc3
init
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
-
return "
|
5 |
|
6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
|
4 |
def greet(name):
|
5 |
+
return gr.Image(f"https://maps.googleapis.com/maps/api/staticmap?center=64.777466,-147.489792&zoom=17&size=400x400&maptype=satellite&key={os.environ['GOOGLE_API_KEY']}")
|
6 |
|
7 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="image")
|
8 |
iface.launch()
|