Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,14 +25,12 @@ def predict(text, operation):
|
|
| 25 |
|
| 26 |
|
| 27 |
iface = gr.Interface(
|
| 28 |
-
title="Positive Reframing EN",
|
| 29 |
-
description="This model is a T5 adjusted to the sentiment transfer task, where the objective is to reverse the sentiment polarity of a text without contradicting the original meaning. Positive reframing induces a complementary positive viewpoint (e.g. glass-half-full) escaping negative patterns. More info [here](https://huggingface.co/dominguesm/positive-reframing-en).",
|
| 30 |
fn=predict,
|
| 31 |
inputs=[
|
| 32 |
gr.Textbox(
|
| 33 |
lines=1,
|
| 34 |
placeholder=(
|
| 35 |
-
f"
|
| 36 |
),
|
| 37 |
),
|
| 38 |
gr.Radio(
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
iface = gr.Interface(
|
|
|
|
|
|
|
| 28 |
fn=predict,
|
| 29 |
inputs=[
|
| 30 |
gr.Textbox(
|
| 31 |
lines=1,
|
| 32 |
placeholder=(
|
| 33 |
+
f"It is hard to take time when in a hurry, but you could do what you want or what is in your nature."
|
| 34 |
),
|
| 35 |
),
|
| 36 |
gr.Radio(
|