vpcom commited on
Commit
27b66a1
·
verified ·
1 Parent(s): 317a84c

fix: IOComponent is no longer supported in Gradio

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: str | IOComponent | list[str | IOComponent] | None = None,
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,