Vishwas1 commited on
Commit
71a5006
·
1 Parent(s): fe52a0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -83,7 +83,8 @@ with demo:
83
  with gr.Row():
84
  input_prompt = gr.Textbox(label="Write some text to get started...", lines=3, value="Ishq kya hai ki")
85
  e = XlitEngine("hi", beam_width=10, rescore=True)
86
- input_prompt = e.translit_sentence(input_prompt)
 
87
  with gr.Row():
88
  generated_txt = gr.Textbox(lines=25, visible = True)
89
 
 
83
  with gr.Row():
84
  input_prompt = gr.Textbox(label="Write some text to get started...", lines=3, value="Ishq kya hai ki")
85
  e = XlitEngine("hi", beam_width=10, rescore=True)
86
+ strtrans=input_prompt.value
87
+ input_prompt = e.translit_sentence(strtrans)
88
  with gr.Row():
89
  generated_txt = gr.Textbox(lines=25, visible = True)
90