Spaces:
Runtime error
Runtime error
| 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() |