Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -281,12 +281,9 @@ iface = gr.Interface(
|
|
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 |
)
|
|
|
281 |
fn=process_input,
|
282 |
inputs="text",
|
283 |
outputs=[
|
284 |
+
gradio.components.Textbox(label="Emotional Response", interactive=False, show_error=True),
|
285 |
+
gradio.components.Textbox(label="Sentiment Response", interactive=False, show_error=True),
|
286 |
+
gradio.components.Textbox(label="Generated Text", interactive=False, show_error=True)
|
287 |
],
|
288 |
+
allow_flagging="never"
|
|
|
|
|
|
|
289 |
)
|