guymorlan commited on
Commit
f660872
·
verified ·
1 Parent(s): f213565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,7 +98,7 @@ def predict(input):
98
  """
99
  return output
100
 
101
- with gr.Blocks(theme=gr.themes.Soft(), title="Ammiya Tokenizer and Labeler", head = js) as demo:
102
  gr.HTML("<h2><span style='color: #2563eb'>Colloquial Arabic</span></h2> Tokenizer and Annotator")
103
  with gr.Row():
104
  with gr.Column():
@@ -110,7 +110,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Ammiya Tokenizer and Labeler", hea
110
  btn.click(predict, inputs=[input], outputs=[html])
111
  input.submit(predict, inputs=[input], outputs=[html])
112
 
113
- demo.load(js=js)
114
 
115
  if __name__ == "__main__":
116
  demo.launch()
 
98
  """
99
  return output
100
 
101
+ with gr.Blocks(theme=gr.themes.Soft(), title="Ammiya Tokenizer and Labeler", js = js) as demo:
102
  gr.HTML("<h2><span style='color: #2563eb'>Colloquial Arabic</span></h2> Tokenizer and Annotator")
103
  with gr.Row():
104
  with gr.Column():
 
110
  btn.click(predict, inputs=[input], outputs=[html])
111
  input.submit(predict, inputs=[input], outputs=[html])
112
 
113
+ demo.load()
114
 
115
  if __name__ == "__main__":
116
  demo.launch()