rajeshradhakrishnan commited on
Commit
5da610e
1 Parent(s): 62de3dd

updated examples variable

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -8,6 +8,12 @@ API_URL = {
8
  "en-tm": f"{uri}/ai4bharat/IndicTrans-English2Indic/+/api/predict/"
9
  }
10
 
 
 
 
 
 
 
11
  def transIndic(idx,text, lang):
12
  response = requests.post(
13
  API_URL[idx],
@@ -35,8 +41,8 @@ interface = gr.Interface(
35
  theme="default",
36
  title="Malayalam to Tamil Translater",
37
  description="Try to translate മലയാളം to தமிழ் ? Input a few malayalam text and verify whether the model translated it appropriately!",
38
- article = "<p style='text-align: center'>മലയാളം - தமிழ் | Demo Application</p>",
39
- examples=[["വടശ്ശേരിക്കര-ഗവി"], ["തിരുവനന്തപുരം-എറണാകുളം"],["നെന്മാറ - നെല്ലിയാമ്പതി"]],
40
  # live=True,
41
  # share=True
42
  )
 
8
  "en-tm": f"{uri}/ai4bharat/IndicTrans-English2Indic/+/api/predict/"
9
  }
10
 
11
+ examples = [
12
+ ["വടശ്ശേരിക്കര-ഗവി"],
13
+ ["തിരുവനന്തപുരം-എറണാകുളം"],
14
+ ["നെന്മാറ - നെല്ലിയാമ്പതി"]
15
+ ]
16
+
17
  def transIndic(idx,text, lang):
18
  response = requests.post(
19
  API_URL[idx],
 
41
  theme="default",
42
  title="Malayalam to Tamil Translater",
43
  description="Try to translate മലയാളം to தமிழ் ? Input a few malayalam text and verify whether the model translated it appropriately!",
44
+ article="<p style='text-align: center'>മലയാളം - தமிழ் | Demo Application</p>",
45
+ examples=examples,
46
  # live=True,
47
  # share=True
48
  )