Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ ar2bw = CharMapper.builtin_mapper('ar2bw')
|
|
6 |
bw2ar = CharMapper.builtin_mapper('bw2ar')
|
7 |
Secret_token = os.getenv('token')
|
8 |
login(token = Secret_token)
|
9 |
-
title = """#Transliterate using BuckWater Scheme"""
|
10 |
description = """
|
11 |
This app converts transliterated arabic text to Arabic using BuckWater Scheme. Use the following image to familiarize yourself with the conversion system.
|
12 |
"""
|
@@ -16,11 +16,14 @@ def getArabic(transliteration):
|
|
16 |
return bw2ar(transliteration)
|
17 |
|
18 |
with gr.Blocks() as demo:
|
|
|
19 |
gr.Markdown(title)
|
20 |
gr.Markdown(description)
|
21 |
-
gr.
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
greet_btn = gr.Button("Get Arabic")
|
25 |
greet_btn.click(fn=getArabic, inputs=name, outputs=output)
|
26 |
examples = gr.Examples(examples = example, inputs = [name])
|
|
|
6 |
bw2ar = CharMapper.builtin_mapper('bw2ar')
|
7 |
Secret_token = os.getenv('token')
|
8 |
login(token = Secret_token)
|
9 |
+
title = """# Transliterate using BuckWater Scheme"""
|
10 |
description = """
|
11 |
This app converts transliterated arabic text to Arabic using BuckWater Scheme. Use the following image to familiarize yourself with the conversion system.
|
12 |
"""
|
|
|
16 |
return bw2ar(transliteration)
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
+
|
20 |
gr.Markdown(title)
|
21 |
gr.Markdown(description)
|
22 |
+
with gr.Row():
|
23 |
+
gr.Image('https://huggingface.co/spaces/FDSRashid/Camel_tools_Test/resolve/main/Buckwalter-transliteration-for-Arabic-language.jpg', width = 300, height = 900)
|
24 |
+
with gr.Column():
|
25 |
+
name = gr.Textbox(label="English Transliteration (Using Buckwater System )")
|
26 |
+
output = gr.Textbox(label="Arabic Form of Text")
|
27 |
greet_btn = gr.Button("Get Arabic")
|
28 |
greet_btn.click(fn=getArabic, inputs=name, outputs=output)
|
29 |
examples = gr.Examples(examples = example, inputs = [name])
|