papluca commited on
Commit
6e4d7ad
·
verified ·
1 Parent(s): 0e46a2d

[Fix] AttributeError: module 'gradio' has no attribute 'inputs'

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,12 +30,12 @@ explanation = "Supported languages are (20): arabic (ar), bulgarian (bg), german
30
 
31
  app = gr.Interface(
32
  fn=predict,
33
- inputs=gr.inputs.Textbox(
34
  placeholder="What's the text you want to know the language for?",
35
  label="Text",
36
  lines=3,
37
  ),
38
- outputs=gr.outputs.Label(num_top_classes=3, label="Your text is written in "),
39
  title=title,
40
  description=description,
41
  examples=examples,
 
30
 
31
  app = gr.Interface(
32
  fn=predict,
33
+ inputs=gr.Textbox(
34
  placeholder="What's the text you want to know the language for?",
35
  label="Text",
36
  lines=3,
37
  ),
38
+ outputs=gr.Label(num_top_classes=3, label="Your text is written in "),
39
  title=title,
40
  description=description,
41
  examples=examples,