Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -281,10 +281,12 @@ iface = gr.Interface(
|
|
| 281 |
fn=process_input,
|
| 282 |
inputs="text",
|
| 283 |
outputs=[
|
| 284 |
-
gradio.components.Textbox(label="Emotional Response"),
|
| 285 |
-
gradio.components.Textbox(label="Sentiment Response"),
|
| 286 |
-
gradio.components.Textbox(label="Generated Text")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
]
|
| 288 |
-
)
|
| 289 |
-
|
| 290 |
-
iface.launch()
|
|
|
|
| 281 |
fn=process_input,
|
| 282 |
inputs="text",
|
| 283 |
outputs=[
|
| 284 |
+
gradio.components.Textbox(label="Emotional Response", interactive=False),
|
| 285 |
+
gradio.components.Textbox(label="Sentiment Response", interactive=False),
|
| 286 |
+
gradio.components.Textbox(label="Generated Text", interactive=False)
|
| 287 |
+
],
|
| 288 |
+
allow_flagging="never",
|
| 289 |
+
error_conditions=[
|
| 290 |
+
(lambda x: isinstance(x, str) and "error" in x.lower(), "There was an error processing your input.")
|
| 291 |
]
|
| 292 |
+
)
|
|
|
|
|
|