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

error: allow_screenshot #1

Open
rraulison opened this issue Nov 1, 2023 · 0 comments
Open

error: allow_screenshot #1

rraulison opened this issue Nov 1, 2023 · 0 comments

Comments

@rraulison
Copy link

rraulison commented Nov 1, 2023

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

@rraulison rraulison reopened this Nov 1, 2023
@rraulison rraulison changed the title model not found error Nov 1, 2023
@rraulison rraulison reopened this Nov 1, 2023
@rraulison rraulison changed the title error error: allow_screenshot Nov 1, 2023
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

1 participant