paper-qa icon indicating copy to clipboard operation
paper-qa copied to clipboard

Demo on Huggingface is down

Open brandco opened this issue 2 years ago • 1 comments

I just encountered this error on the Hugging Face demo (https://huggingface.co/spaces/whitead/paper-qa)

Runtime error Space failed. Exit code: 1. Reason: Traceback (most recent call last): File "app.py", line 2, in import paperqa File "/home/user/.local/lib/python3.8/site-packages/paperqa/init.py", line 1, in from .docs import Answer, Docs, PromptCollection, Doc, Text File "/home/user/.local/lib/python3.8/site-packages/paperqa/docs.py", line 35, in class Docs(BaseModel, arbitrary_types_allowed=True, smart_union=True): File "/home/user/.local/lib/python3.8/site-packages/paperqa/docs.py", line 43, in Docs llm: Union[str, BaseLanguageModel] = ChatOpenAI( File "/home/user/.local/lib/python3.8/site-packages/langchain/load/serializable.py", line 74, in init super().init(**kwargs) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for ChatOpenAI root Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)

Tail of the container logs: File "app.py", line 119, in download_repo raise ValueError('Unknown Github Repo') ValueError: Unknown Github Repo Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')).

brandco avatar Sep 22 '23 16:09 brandco

I'm having the same issue, any solutions?

evanVerinomics avatar Dec 01 '23 19:12 evanVerinomics