File size: 421 Bytes
62c5688
0ff00ed
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
from gradio import inputs
description = "text classification"
interface = gr.Interface.load("huggingface/juliensimon/distilbert-amazon-shoe-reviews", 
	title = "text classification",
	inputs = [
        gr.inputs.Textbox(lines=7, label="Story"),
    ],
    description=description,
    examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]]
)
interface.launch()