Unable to generate outputs

#6
by ysharma HF staff - opened

Hi @myhloli , this is a very nice UI, huge kudos for building it. However, it seems to be in a error stage at the moment :

openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided. ', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}, 'request_id': 'b86a094f-09c4-9189-819e-bb60bd25306a'}
Traceback (most recent call last):
  File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
    response = await route_utils.call_process_api(
  File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
    output = await app.get_blocks().process_api(
  File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/gradio/blocks.py", line 2043, in process_api
    result = await self.call_function(
  File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/gradio/blocks.py", line 1590, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
  File "/home/user/.pyenv/versions/3.10.16/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 "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2461, in run_sync_in_worker_thread
    return await future
  File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 962, in run
    result = context.run(func, *args)
  File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/gradio/utils.py", line 865, in wrapper
    response = f(*args, **kwargs)
  File "/home/user/app/app.py", line 117, in to_markdown
    local_md_dir, file_name = parse_pdf(file_path, './output', end_pages - 1, is_ocr,
TypeError: cannot unpack non-iterable NoneType object

Also, wanted to mention that a GPU intensive app sponsored by HuggingFace has significant potential for impact. It would be very helpful if the app received a bit more maintenance. HF Spaces encourages community engagement and innovation. Addressing this issue could further enhance the app's success.

OpenDataLab org

The new version encountered some bugs during its release process. We have fixed the issue and re-released it.

myhloli changed discussion status to closed

Awesome, thanks for looking into this!

Sign up or log in to comment