huggingface / huggingface/agents-course
[HANDS-ON BUG] Runtime type error on first_agent_template
- Dominant language
- MDX
- Stars
- 32.6k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The first agent template, even when freshly copied, does build but is unable to accept any message in the app. the container errors in:
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 986, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 993, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 939, in _json_schema_to_python_type
type_ = get_type(schema)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 898, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
**To Reproduce**
Start the first_agent_template and try to send a message to the bot
**Screenshots**

**Additional context**
None
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.