Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,11 @@ def main():
|
|
| 30 |
model = Emotionclass("bhadresh-savani/bert-base-uncased-emotion")
|
| 31 |
iface = gr.Interface(
|
| 32 |
fn=model.predict,
|
| 33 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
outputs=["text"],
|
| 35 |
title="Sentiment Classification",
|
| 36 |
)
|
|
|
|
| 30 |
model = Emotionclass("bhadresh-savani/bert-base-uncased-emotion")
|
| 31 |
iface = gr.Interface(
|
| 32 |
fn=model.predict,
|
| 33 |
+
inputs=gr.inputs.Textbox(
|
| 34 |
+
lines=3,
|
| 35 |
+
placeholder="type here",
|
| 36 |
+
label="Input",
|
| 37 |
+
),
|
| 38 |
outputs=["text"],
|
| 39 |
title="Sentiment Classification",
|
| 40 |
)
|