Hunzla commited on
Commit
dadb635
1 Parent(s): 599665c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -90,7 +90,7 @@ examples = [
90
  ['English', 'Urdu', 'Hi. nice to meet you']
91
  ]
92
 
93
- gr.Interface(translation,
94
  inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
95
  gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
96
  gr.inputs.Textbox(lines=5, label="Input text"),
@@ -99,6 +99,7 @@ gr.Interface(translation,
99
  outputs = gr.outputs.JSON(),
100
  title=title,
101
  description=description,
102
- ).launch()
 
103
 
104
 
 
90
  ['English', 'Urdu', 'Hi. nice to meet you']
91
  ]
92
 
93
+ demo = gr.Interface(translation,
94
  inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
95
  gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
96
  gr.inputs.Textbox(lines=5, label="Input text"),
 
99
  outputs = gr.outputs.JSON(),
100
  title=title,
101
  description=description,
102
+ )
103
+ demo.launch()
104
 
105