API_demo_client / app.py
Nuno-Tome's picture
test
6c7a215
raw
history blame
294 Bytes
from gradio_client import Client
import gradio as gr
client = Client("Nuno-Tome/API_demo_server")
def request(text):
result = client.predict(
"Hello World", # str in 'text' Textbox component
api_name="/predict"
)
return result
io = gr.Interface(request, "textbox", "json")