sethanimesh commited on
Commit
2152c7d
·
verified ·
1 Parent(s): 291eb5a

fixing deprecated API

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -59,13 +59,13 @@ if __name__ == '__main__':
59
 
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
 
@@ -76,8 +76,8 @@ if __name__ == '__main__':
76
  ]
77
 
78
  gr.Interface(translation,
79
- inputs,
80
- outputs,
81
  title=title,
82
  description=description,
83
  ).launch()
 
59
 
60
  # define gradio demo
61
  lang_codes = list(flores_codes.keys())
62
+ #inputs = [gr.Image.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
63
+ Image = [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
+ Label = gr.Label.JSON()
69
 
70
  title = "NLLB distilled 600M demo"
71
 
 
76
  ]
77
 
78
  gr.Interface(translation,
79
+ Image,
80
+ Label,
81
  title=title,
82
  description=description,
83
  ).launch()