NLPAlhuzali commited on
Commit
b22af02
Β·
verified Β·
1 Parent(s): 35c9edb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="Ω„Ψ§ يوجد ΩƒΩŠΨ§Ω†Ψ§Ψͺ", 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:
 
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: