Junfeng's picture
Update app.py
8027613
raw
history blame contribute delete
388 Bytes
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()