File size: 359 Bytes
d0171ad
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
import torch

title = "Covid True/False Classifier"
examples = [
    ['Covid vaccines are safe andd effective.'],
    ["Covid vaccines cause autism."],
]

gr.Interface.load("models/justinqbui/bertweet-covid-vaccine-tweets-finetuned", 
    inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
    title=title, examples=examples).launch();