Skip to content

error: allow_screenshot #1

@rraulison

Description

@rraulison

hello!

python app.py says:

python app.py 
/home/pai/text-generation-webui/Zephyr-7B-beta-RAG-Demo/.conda/lib/python3.10/site-packages/langchain/__init__.py:34: UserWarning: Importing PromptTemplate from langchain root module is no longer supported. Please use langchain.prompts.PromptTemplate instead.
  warnings.warn(
/home/pai/text-generation-webui/Zephyr-7B-beta-RAG-Demo/.conda/lib/python3.10/site-packages/langchain/__init__.py:34: UserWarning: Importing LLMChain from langchain root module is no longer supported. Please use langchain.chains.LLMChain instead.
  warnings.warn(
LLM Initialized...
######################################################################
Traceback (most recent call last):
  File "/home/pai/text-generation-webui/Zephyr-7B-beta-RAG-Demo/app.py", line 96, in <module>
    iface = gr.Interface(fn=get_response, 
  File "/home/pai/text-generation-webui/Zephyr-7B-beta-RAG-Demo/.conda/lib/python3.10/site-packages/gradio/interface.py", line 146, in __init__
    super().__init__(
  File "/home/pai/text-generation-webui/Zephyr-7B-beta-RAG-Demo/.conda/lib/python3.10/site-packages/gradio/blocks.py", line 542, in __init__
    super().__init__(render=False, **kwargs)
TypeError: BlockContext.__init__() got an unexpected keyword argument 'allow_screenshot'

I have just commented this line '#allow_screenshot=False' on app.py and it worked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions