huzaifanafees commited on
Commit
1ed6d3d
·
1 Parent(s): 24ff6cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -37,13 +37,6 @@ def translate(inp, direction):
37
 
38
  return translated_text
39
 
40
- title = """
41
- <h1
42
- <center>
43
- English-Urdu Translation
44
- </center>
45
- </h1>
46
- """
47
 
48
  description = """
49
  <p>
@@ -52,19 +45,19 @@ This app is built as part of an MS project, the app leverages advanced Transform
52
  </center>
53
  </p>
54
  """
55
- 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> | Contact: <a href='mailto:huzaifahtu@gmail.com' target='_blank'>Huzaifa</a></p></center></p>"
56
  examples = [
57
  ["the weather is good today", "en->ur"],
58
  ["آج اچھا دن ہے", "ur->en"]
59
  ]
60
  iface = gr.Interface(
61
  fn=translate,
62
- title="🌸MTet Translation🌸",
63
  description=description,
64
  article=article,
65
  examples=examples,
66
  inputs=[gr.Textbox(lines=5, placeholder="Enter text (maximum 35 words)", label="Input"),
67
- gr.Radio(choices=['en->ur','ur->en'], value='en->ur', label='Selcet the direction of translation'),],
68
  outputs="text")
69
 
70
  iface.launch()
 
37
 
38
  return translated_text
39
 
 
 
 
 
 
 
 
40
 
41
  description = """
42
  <p>
 
45
  </center>
46
  </p>
47
  """
48
+ 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> | Contact: <a href='mailto:huzaifahtu@gmail.com' target='_blank'>Huzaifa</a></p></center></p>"
49
  examples = [
50
  ["the weather is good today", "en->ur"],
51
  ["آج اچھا دن ہے", "ur->en"]
52
  ]
53
  iface = gr.Interface(
54
  fn=translate,
55
+ title="English-Urdu Translation",
56
  description=description,
57
  article=article,
58
  examples=examples,
59
  inputs=[gr.Textbox(lines=5, placeholder="Enter text (maximum 35 words)", label="Input"),
60
+ gr.Radio(choices=['en->ur','ur->en'], value='en->ur', label='Select the direction of translation'),],
61
  outputs="text")
62
 
63
  iface.launch()