File size: 667 Bytes
a83f80b
 
d564f5f
 
 
 
 
c49cab1
d564f5f
 
766e63e
 
d564f5f
766e63e
 
f871c84
766e63e
 
99cae84
766e63e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr

README = """
    # Movie Review Score Discriminator
    It is a program that classifies whether it is positive or negative by entering movie reviews.
    You can choose between the Korean version and the English version.
    ## Usage

"""

# with gr.Blocks() as demo:
#     gr.Markdown(README)

#     with gr.Tab("Korean version"):
#         gr.Interface.load("models/cardiffnlp/twitter-roberta-base-sentiment").launch()

#     with gr.Tab("English version"):
#         gr.Interface.load("models/cardiffnlp/twitter-roberta-base-sentiment").launch()

# demo.launch()

gr.Interface.load("models/cardiffnlp/twitter-roberta-base-sentiment").launch()