Spaces:
Runtime error
Runtime error
import gradio as gr | |
def greet(name): | |
return "Hello " + name + "!!" | |
''' | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface.launch() | |
''' | |
gr.Interface.load( | |
"huggingface/google/vit-base-patch16-224", | |
title="Classify Image with Vision Transformer", | |
examples=["alligator.jpg", "roe-deer.jpg", "camera.jpg", "laptop.jpg"]).launch() | |