File size: 388 Bytes
7872368
9644ce5
7872368
 
7ef0c91
7872368
a13bb74
d38b2cc
9644ce5
a13bb74
 
8027613
4a4df1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()