Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python core/frontend.py 运行报错 #45

Open
lyoovue opened this issue Dec 2, 2024 · 1 comment
Open

python core/frontend.py 运行报错 #45

lyoovue opened this issue Dec 2, 2024 · 1 comment

Comments

@lyoovue
Copy link

lyoovue commented Dec 2, 2024

─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ D:\ppp_work\Long-Novel-GPT\core\frontend.py:78 in │
│ │
│ 75 │ │ except FileNotFoundError: │
│ 76 │ │ │ raise gr.Error(f"未找到保存的状态文件:{json_file_name}") │
│ 77 │ │
│ > 78 │ idea_textbox = gr.Textbox(placeholder='用一段话描述你要写的小说,或者从下方示例中选 │
│ 79 │ │
│ 80 │ gr.Examples( │
│ 81 │ │ label='示例', │
│ │
│ D:\Users\97604\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\component_meta.p │
│ y:163 in wrapper │
│ │
│ 160 │ │ if in_event_listener and initialized_before and not is_render: │
│ 161 │ │ │ return None │
│ 162 │ │ else: │
│ > 163 │ │ │ return fn(self, **kwargs) │
│ 164 │ │
│ 165 │ return wrapper │
│ 166 │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
TypeError: Textbox.init() got an unexpected keyword argument 'max_length'

@MaoXiaoYuZ
Copy link
Owner

运行这条命令试试:
pip install gradio==5.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants