raphael825
Add the Json
7ae58b6
raw
history blame
248 Bytes
import gradio
import gradio as gr
def greet(name):
test = gradio.JSON("data/book.json")
test_txt = test["title"]
return "Hello " + name + test_txt + "!!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()