Sharing private space through gr.load
Hello,I have a private space with the code I do not want to share and I am trying to share it via creating public space and load it via gradio like described here:Share app url without sharing the files and version - #12 by radamesMy code is as simple as this:import gradio as gr
import os

REDACTED_TOKEN = os.environ['GRADIO_API_KEY']

iface = gr.load(name="<org>/<name>", REDACTED_TOKEN=REDACTED_TOKEN, src="spaces")
iface.queue(api_open=False).launch(show_api=False)And it “works” but the app is empty, while the same private space looks normal. What might be wrong there?
2023-07-11T19:00:17Z
Here is the space I’m talking about:PPAIA Public - a Hugging Face Space by hiPets
2023-07-11T21:21:42Z
hi@AbdizrielThanks for sharing the public Space, can you please confirm both Gradio versions are the same ?huggingface.coREADME.md · hiPets/PPAIA-public at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.And do you see any other error message on your logs?
2023-07-12T07:24:03Z
Hi@radamesI’ve checked and even make sure to have it on same SDK - It’s 3.36.1 for both private & public space.I don’t see any errors other than a warning on public like this:Fetching Space from: https://huggingface.co/spaces/hiPets/PPAIA
Loaded as API: https://hipets-ppaia.hf.space ✔
/home/user/app/app.py:6: GradioUnusedKwargWarning: You have unused kwarg parameters in Chatbot, please remove them: {'selectable': False}
  iface = gr.load(name="hiPets/PPAIA", hf_*****=hf_*****, src="spaces")
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
2023-07-13T14:58:30Z
Hi@Abdizriel!The components are on the page but for some reason they are all invisible. I think it’s a bug in gradio but I can’t reproduce it with other demos so I think it’s something about the private space layout. It will be hard to debug without knowing what the private space looks like. Could you share the layout code of the private space but mock out all the function implementations?Thank you