corte / app.py
pbrenotvinciguerra's picture
add ngrok
ab19b96
raw
history blame
243 Bytes
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()