Spaces:
Runtime error
Runtime error
File size: 427 Bytes
bf8e02d f056900 3793644 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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() |