Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def greet(
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def greet(url):
|
| 4 |
+
req = requests.get(url)
|
| 5 |
+
return f"Helo {req.json()}"
|
| 6 |
|
| 7 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
iface.launch()
|