MohamedRashad commited on
Commit
3edac1c
·
1 Parent(s): bc40199

chore: Update TashkeelModelEO and TashkeelModelED loading in app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ with gr.Blocks(title="Arabic Tashkeel") as demo:
79
  gr.Examples(examples, text_input1, cache_examples=False)
80
 
81
  submit_button1.click(infer_catt, inputs=[text_input1, choose_model], outputs=text_output1)
82
- clear_button1.click(lambda: gr.update(""), gr.update(""), outputs=[text_input1, text_output1])
83
 
84
  with gr.Tab(label="Shakkala"):
85
  gr.HTML("<center><h2>Shakkala: Arabic Diacritization</h2></center>")
@@ -96,7 +96,7 @@ with gr.Blocks(title="Arabic Tashkeel") as demo:
96
  )
97
 
98
  submit_button2.click(infer_shakkala, inputs=text_input2, outputs=text_output2)
99
- clear_button2.click(lambda: gr.update(""), gr.update(""), outputs=[text_input2, text_output2])
100
 
101
  gr.Examples(examples, text_input2, cache_examples=False)
102
 
 
79
  gr.Examples(examples, text_input1, cache_examples=False)
80
 
81
  submit_button1.click(infer_catt, inputs=[text_input1, choose_model], outputs=text_output1)
82
+ clear_button1.click(lambda: (gr.update(""), gr.update("")), outputs=[text_input1, text_output1])
83
 
84
  with gr.Tab(label="Shakkala"):
85
  gr.HTML("<center><h2>Shakkala: Arabic Diacritization</h2></center>")
 
96
  )
97
 
98
  submit_button2.click(infer_shakkala, inputs=text_input2, outputs=text_output2)
99
+ clear_button2.click(lambda: (gr.update(""), gr.update("")), outputs=[text_input2, text_output2])
100
 
101
  gr.Examples(examples, text_input2, cache_examples=False)
102