Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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",
|
| 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(
|
| 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()
|