Spaces:
Sleeping
Sleeping
Commit
·
8aed5de
1
Parent(s):
2269909
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ description = """
|
|
42 |
<div class="title">English-Urdu Translation</div>
|
43 |
<div class="description">This app leverages advanced Transformer models and custom-trained tokenizers to deliver accurate and context-aware translations.</div>
|
44 |
"""
|
45 |
-
article = "<p style='text-align: center'>Created by: <a href='https://www.linkedin.com/in/syedhuzaifanafees/' target='_blank'>Syed Huzaifa Nafees</a> | Supervisor: <a href='https://www.linkedin.com/in/shaider/' target='_blank'>Dr. Sajjad Haider</a
|
46 |
examples = [
|
47 |
["the weather is good today", "en->ur"],
|
48 |
["آج اچھا دن ہے", "ur->en"]
|
@@ -53,7 +53,7 @@ iface = gr.Interface(
|
|
53 |
description=description,
|
54 |
article=article,
|
55 |
examples=examples,
|
56 |
-
inputs=[gr.Textbox(lines=5, placeholder="Enter text (maximum 35 words)", label="Input"),
|
57 |
gr.Radio(choices=['en->ur','ur->en'], value='en->ur', label='Select the direction of translation'),],
|
58 |
outputs="text",
|
59 |
css= 'style.css')
|
|
|
42 |
<div class="title">English-Urdu Translation</div>
|
43 |
<div class="description">This app leverages advanced Transformer models and custom-trained tokenizers to deliver accurate and context-aware translations.</div>
|
44 |
"""
|
45 |
+
article = "<p style='text-align: center'>Created by: <a href='https://www.linkedin.com/in/syedhuzaifanafees/' target='_blank'>Syed Huzaifa Nafees</a> | Supervisor: <a href='https://www.linkedin.com/in/shaider/' target='_blank'>Dr. Sajjad Haider</a></p></center></p>"
|
46 |
examples = [
|
47 |
["the weather is good today", "en->ur"],
|
48 |
["آج اچھا دن ہے", "ur->en"]
|
|
|
53 |
description=description,
|
54 |
article=article,
|
55 |
examples=examples,
|
56 |
+
inputs=[gr.Textbox.submit(lines=5, placeholder="Enter text (maximum 35 words)", label="Input"),
|
57 |
gr.Radio(choices=['en->ur','ur->en'], value='en->ur', label='Select the direction of translation'),],
|
58 |
outputs="text",
|
59 |
css= 'style.css')
|