-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
1. KeYError:tokenizer
错误信息如下:
Traceback (most recent call last):
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/queueing.py", line 667, in process_events
response = await route_utils.call_process_api(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/route_utils.py", line 349, in call_process_api
output = await app.get_blocks().process_api(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/blocks.py", line 2274, in process_api
result = await self.call_function(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/blocks.py", line 1781, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2476, in run_sync_in_worker_thread
return await future
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/utils.py", line 915, in wrapper
response = f(*args, **kwargs)
File "/root/GraphGen/webui/app.py", line 531, in <lambda>
lambda *args: run_graphgen(
File "/root/GraphGen/webui/app.py", line 126, in run_graphgen
graph_gen = init_graph_gen(config, env)
File "/root/GraphGen/webui/app.py", line 40, in init_graph_gen
graph_gen = GraphGen(working_dir=working_dir)
File "<string>", line 14, in __init__
File "/root/GraphGen/graphgen/graphgen.py", line 70, in __post_init__
model_name=self.config["tokenizer"]
KeyError: 'tokenizer'修改graph_gen = GraphGen(working_dir=working_dir, config=config) 后继续运行,错误信息如下:
—-
2. API error
Traceback (most recent call last):
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/queueing.py", line 667, in process_events
response = await route_utils.call_process_api(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/route_utils.py", line 349, in call_process_api
output = await app.get_blocks().process_api(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/blocks.py", line 2274, in process_api
result = await self.call_function(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/blocks.py", line 1781, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2476, in run_sync_in_worker_thread
return await future
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
File "/root/.conda/envs/graphgen/lib/python3.10/site-packages/gradio/utils.py", line 915, in wrapper
response = f(*args, **kwargs)
File "/root/GraphGen/webui/app.py", line 531, in <lambda>
lambda *args: run_graphgen(
File "/root/GraphGen/webui/app.py", line 126, in run_graphgen
graph_gen = init_graph_gen(config, env)
File "/root/GraphGen/webui/app.py", line 40, in init_graph_gen
graph_gen = GraphGen(config=config,working_dir=working_dir)
File "<string>", line 14, in __init__
File "/root/GraphGen/graphgen/graphgen.py", line 72, in __post_init__
self.synthesizer_llm_client: OpenAIModel = OpenAIModel(
File "<string>", line 22, in __init__
File "/root/GraphGen/graphgen/models/llm/openai_model.py", line 61, in __post_init__
assert self.api_key is not None, "Please provide api key to access openai api."
AssertionError: Please provide api key to access openai api.ChenZiHong-Gavintpoisonooo
Metadata
Metadata
Assignees
Labels
No labels