sethanimesh commited on
Commit
291eb5a
·
verified ·
1 Parent(s): 38b9e01

fixing deprecated values

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -60,12 +60,12 @@ if __name__ == '__main__':
60
  # define gradio demo
61
  lang_codes = list(flores_codes.keys())
62
  #inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
63
- inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
64
- gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
65
- gr.inputs.Textbox(lines=5, label="Input text"),
66
  ]
67
 
68
- outputs = gr.outputs.JSON()
69
 
70
  title = "NLLB distilled 600M demo"
71
 
 
60
  # define gradio demo
61
  lang_codes = list(flores_codes.keys())
62
  #inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
63
+ inputs = [gr.Image.Dropdown(lang_codes, default='English', label='Source'),
64
+ gr.Image.Dropdown(lang_codes, default='Korean', label='Target'),
65
+ gr.Image.Textbox(lines=5, label="Input text"),
66
  ]
67
 
68
+ outputs = gr.Label.JSON()
69
 
70
  title = "NLLB distilled 600M demo"
71