sumanthd commited on
Commit
26dd92c
ยท
1 Parent(s): d299ec7
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -9,6 +9,11 @@ MAX_MAX_NEW_TOKENS = 4096
9
  DEFAULT_MAX_NEW_TOKENS = 2048
10
  MAX_INPUT_TOKEN_LENGTH = 4096
11
 
 
 
 
 
 
12
  if not torch.cuda.is_available():
13
  DESCRIPTION += "\n<p>Running on CPU ๐Ÿฅถ This demo does not work on CPU.</p>"
14
 
@@ -110,7 +115,7 @@ css = """
110
  """
111
 
112
  with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
113
- gr.Markdown("# IndicTrans3 Demo ๐Ÿš€", elem_id="header")
114
  gr.Markdown("Translate text between multiple Indic languages using the latest IndicTrans3 model from AI4Bharat. This model is trained on the --- dataset and supports translation to 22 Indic languages. Setting a state-of-the-art benchmark on multiple translation tasks, IndicTrans3 is a powerful model that can handle complex translation tasks with ease.", elem_id="description")
115
 
116
  with gr.Column(elem_id="col-container"):
 
9
  DEFAULT_MAX_NEW_TOKENS = 2048
10
  MAX_INPUT_TOKEN_LENGTH = 4096
11
 
12
+
13
+ DESCRIPTION = """\
14
+ # IndicTrans3-beta ๐Ÿš€
15
+ """
16
+
17
  if not torch.cuda.is_available():
18
  DESCRIPTION += "\n<p>Running on CPU ๐Ÿฅถ This demo does not work on CPU.</p>"
19
 
 
115
  """
116
 
117
  with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
118
+ gr.Markdown(DESCRIPTION, elem_id="header")
119
  gr.Markdown("Translate text between multiple Indic languages using the latest IndicTrans3 model from AI4Bharat. This model is trained on the --- dataset and supports translation to 22 Indic languages. Setting a state-of-the-art benchmark on multiple translation tasks, IndicTrans3 is a powerful model that can handle complex translation tasks with ease.", elem_id="description")
120
 
121
  with gr.Column(elem_id="col-container"):