Spaces:
Runtime error
Runtime error
fix: IOComponent is no longer supported in Gradio
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ from gradio.utils import SyncToAsyncIterator, async_iteration
|
|
19 |
from gradio.components import (
|
20 |
Button,
|
21 |
Chatbot,
|
22 |
-
IOComponent,
|
23 |
Markdown,
|
24 |
State,
|
25 |
Textbox,
|
@@ -908,7 +908,7 @@ class ChatInterface(gr.ChatInterface):
|
|
908 |
*,
|
909 |
chatbot: Chatbot | None = None,
|
910 |
textbox: Textbox | None = None,
|
911 |
-
additional_inputs
|
912 |
additional_inputs_accordion_name: str = "Additional Inputs",
|
913 |
examples: list[str] | None = None,
|
914 |
cache_examples: bool | None = None,
|
|
|
19 |
from gradio.components import (
|
20 |
Button,
|
21 |
Chatbot,
|
22 |
+
# IOComponent,
|
23 |
Markdown,
|
24 |
State,
|
25 |
Textbox,
|
|
|
908 |
*,
|
909 |
chatbot: Chatbot | None = None,
|
910 |
textbox: Textbox | None = None,
|
911 |
+
additional_inputs | None = None,
|
912 |
additional_inputs_accordion_name: str = "Additional Inputs",
|
913 |
examples: list[str] | None = None,
|
914 |
cache_examples: bool | None = None,
|