Commit
·
d48487f
1
Parent(s):
24c8264
change input boc
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ demo = gr.Blocks()
|
|
47 |
|
48 |
with demo:
|
49 |
gr.Markdown()
|
50 |
-
inputs = gr.Dropdown(["POSITIVE", "NEGATIVE"], label="Sentiment to generate")
|
51 |
output = gr.Textbox(label="Generated tweet")
|
52 |
b1 = gr.Button("Generate")
|
53 |
b1.click(classify, inputs=inputs, outputs=output)
|
|
|
47 |
|
48 |
with demo:
|
49 |
gr.Markdown()
|
50 |
+
inputs = gr.Radio(["POSITIVE", "NEGATIVE"], label="Sentiment to generate") #gr.Dropdown(["POSITIVE", "NEGATIVE"], label="Sentiment to generate")
|
51 |
output = gr.Textbox(label="Generated tweet")
|
52 |
b1 = gr.Button("Generate")
|
53 |
b1.click(classify, inputs=inputs, outputs=output)
|