Access chat app in another app
Hello team , I have created an sample private space using the gradio temple for chatbot (no change done), that space is working fine .I am trying to access it and display it in another public space but it gives an error like belowThis is the error in app where I am trying to accessraise AppError(gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception: ‘NoneType’ object is not subscriptableThis is the message in the chatbot appmessage_serialized, history = self._process_msg_and_trim_history(File “/usr/local/lib/python3.10/site-packages/gradio/chat_interface.py”, line 605, in _process_msg_and_trim_historyhistory = history_with_input[:-1]TypeError: ‘NoneType’ object is not subscriptableCode for chatbot app -default code from template for gradioCode for app which is trying to accessimport osimport gradio as grfrom huggingface_hub import loginAuthenticate with Hugging FaceHF_TOKEN = os.getenv(“HF_TOKEN”)  # Set your Hugging Face token in the environmentlogin(token=HF_TOKEN)  # Authenticate using the tokenLoad the private Space (replace with the correct Space ID)with gr.Blocks() as demo:gr.load(“xxx/privateapp”,token=HF_TOKEN, src=“spaces”)demo.launch(show_error=True)I have also tried making private app public but still the same errorYou can also try this and it’s very easy to replicateAny help here would really help meThank you
2024-12-13T03:36:33Z
Loading from outside the private Gradio space will not succeed in most cases. I still don’t know whether this is a bug or a feature…
2024-12-13T11:10:25Z
Well I have also tried to access by making it public, it’s the issue with the default chatbot app as I also tried other  simpler apps they work fine
2024-12-13T11:15:49Z
Oh, I see, it’s a Gradio bug…There’s no such thing as a bug-free Gradio. There must be aliens inside.There are too many issues, so it’s impossible to tell whether there’s already something that matches…GitHubIssues · gradio-app/gradioBuild and share delightful machine learning apps, all in Python. 🌟 Star to support our work! - Issues · gradio-app/gradio