meng cao
modify application file
3793644
raw
history blame contribute delete
427 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
def image_classifier(inp):
return {'cat': 0.3, 'dog': 0.7}
def capitalize_text(input_text):
return input_text.upper()
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
#iface = gr.Interface(fn=capitalize_text, inputs="text", outputs="text")
iface.launch()