Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,9 +113,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 113 |
|
| 114 |
if task == "entity_recognition":
|
| 115 |
if isinstance(result, str):
|
| 116 |
-
return gr.update(visible=False), gr.update(value="
|
| 117 |
elif isinstance(result, list) and len(result) == 0:
|
| 118 |
-
return gr.update(visible=False), gr.update(value="
|
| 119 |
else:
|
| 120 |
return gr.update(value=result, visible=True), gr.update(visible=False)
|
| 121 |
else:
|
|
|
|
| 113 |
|
| 114 |
if task == "entity_recognition":
|
| 115 |
if isinstance(result, str):
|
| 116 |
+
return gr.update(visible=False), gr.update(value="β οΈ ΩΩ
ΩΨͺΩ
Ψ§ΩΨͺΨΉΨ±Ω ΨΉΩΩ Ψ£Ω ΩΩΨ§Ω", visible=True)
|
| 117 |
elif isinstance(result, list) and len(result) == 0:
|
| 118 |
+
return gr.update(visible=False), gr.update(value="β οΈ ΩΩ
ΩΨͺΩ
Ψ§ΩΨͺΨΉΨ±Ω ΨΉΩΩ Ψ£Ω ΩΩΨ§Ω", visible=True)
|
| 119 |
else:
|
| 120 |
return gr.update(value=result, visible=True), gr.update(visible=False)
|
| 121 |
else:
|