Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,12 +102,11 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Ammiya Tokenizer and Labeler") as
|
|
102 |
gr.HTML("<h2><span style='color: #2563eb'>Colloquial Arabic</span></h2> Tokenizer and Annotator")
|
103 |
with gr.Row():
|
104 |
with gr.Column():
|
105 |
-
input = gr.Textbox(label="Input", placeholder="Enter
|
106 |
gr.Examples(examples=["بديش اروح معك", "معملتش اشي"], inputs=input)
|
107 |
btn = gr.Button("Analyze")
|
108 |
with gr.Column():
|
109 |
-
|
110 |
-
html = gr.HTML()
|
111 |
btn.click(predict, inputs=[input], outputs=[html])
|
112 |
input.submit(predict, inputs=[input], outputs=[html])
|
113 |
|
|
|
102 |
gr.HTML("<h2><span style='color: #2563eb'>Colloquial Arabic</span></h2> Tokenizer and Annotator")
|
103 |
with gr.Row():
|
104 |
with gr.Column():
|
105 |
+
input = gr.Textbox(label="Input", placeholder="Enter Arabic Text", lines=1)
|
106 |
gr.Examples(examples=["بديش اروح معك", "معملتش اشي"], inputs=input)
|
107 |
btn = gr.Button("Analyze")
|
108 |
with gr.Column():
|
109 |
+
html = gr.HTML()
|
|
|
110 |
btn.click(predict, inputs=[input], outputs=[html])
|
111 |
input.submit(predict, inputs=[input], outputs=[html])
|
112 |
|