freddyaboulton / gradio-tools

MIT License
556 stars 44 forks source link

The current space is in the invalid state: RUNTIME_ERROR. Please contact the owner to fix this. #37

Open Cinemachina opened 1 year ago

Cinemachina commented 1 year ago

I am getting the error "The current space is in the invalid state: RUNTIME_ERROR. Please contact the owner to fix this." when running this code:

from gradio_tools import (StableDiffusionTool, ImageCaptioningTool, StableDiffusionPromptGeneratorTool, TextToVideoTool)

from langchain.agents import initialize_agent from langchain.llms import OpenAI from langchain.memory import ConversationBufferMemory

llm = OpenAI(temperature=0) memory = ConversationBufferMemory(memory_key="chat_history")

tools = [StableDiffusionTool().langchain, ImageCaptioningTool().langchain, StableDiffusionPromptGeneratorTool().langchain, TextToVideoTool().langchain]

agent = initialize_agent(tools, llm, memory=memory, agent="conversational-react-description", verbose=True) output = agent.run(input=("Please create a photo of a dog riding a skateboard " "but improve my prompt prior to using an image generator." "Please caption the generated image and create a video for it using the improved prompt."))

ajaymdesai commented 3 months ago

Same issue. https://huggingface.co/gradio-client-demos shows all spaces are in runtime error.