andgrt commited on
Commit
22f2eb7
·
1 Parent(s): caefb83

fix: "AttributeError: module gradio has no attribute inputs"

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,8 +74,8 @@ examples = [
74
  interface = gr.Interface(
75
  fn=generate_answer,
76
  inputs=[
77
- gr.inputs.Image(type="pil"),
78
- gr.inputs.Textbox(label="Вопрос (на русском)", placeholder="Ваш вопрос"),
79
  ],
80
  outputs=gr.outputs.Textbox(label="Ответ (на русском)"),
81
  examples=examples,
 
74
  interface = gr.Interface(
75
  fn=generate_answer,
76
  inputs=[
77
+ gr.Image(type="pil"),
78
+ gr.Textbox(label="Вопрос (на русском)", placeholder="Ваш вопрос"),
79
  ],
80
  outputs=gr.outputs.Textbox(label="Ответ (на русском)"),
81
  examples=examples,