Spaces:
Runtime error
Runtime error
fix: "AttributeError: module gradio has no attribute inputs"
Browse files
app.py
CHANGED
|
@@ -74,8 +74,8 @@ examples = [
|
|
| 74 |
interface = gr.Interface(
|
| 75 |
fn=generate_answer,
|
| 76 |
inputs=[
|
| 77 |
-
gr.
|
| 78 |
-
gr.
|
| 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,
|