Spaces:
Sleeping
Sleeping
import gradio as gr | |
import requests | |
def greet(url, query): | |
response = requests.get(f"{url}generate?query={query}") | |
return str(response.text) | |
iface = gr.Interface(fn=greet, inputs=["text","text"], outputs="text") | |
iface.launch() | |