Clone Space

#65
by BBLL3456 - opened

Hi, can I clone the Space?

You can clone the repo... is that the same as cloning the Space?

image.png

Perhaps you want "Duplicate this Space" just below that.

I'm glad you asked this question because I decided to try the 'Embed this Space' option and ended up creating a basic html document for local use.
I also embedded the Inpainting demo so the output from Comic Factory can be inpainted to change specific areas.

No frills but works:

image.png

The entire text of the webpage is:

<html>
<head>
  <title>Cartoon Factory</title>
</head>
<body>

  <h1>Cartoon Factory</h1>

  <iframe
    src="https://jbilcke-hf-ai-comic-factory.hf.space"
    frameborder="0"
    width="850"
    height="450"
  ></iframe>
  <br></br>
  Want to inpaint an area of your comic book page to change an area of it?
  <br></br>
 <iframe
    src="https://diffusers-stable-diffusion-xl-inpainting.hf.space"
    frameborder="0"
    width="850"
    height="450"
></iframe>
 

</body>
</html>```

You'd likely want to change the width and height.

Having said all this, I'm intrigued about cloning/duplicating the space as well so please let us know how that works out.
That's probably the best way to learn how to give back to this Cartoon Factory community.
I certainly hope to be able to submit a pull request or two in the future. :)

Here's a proof of concept of Comic Factory running inside a portable Tiddlywiki document:

image.png

Hi, thanks for your responses. I clicked on the duplicate space and it requires me to key in 3 secrets:

image.png

I am not sure where to get these information. I don't think pasting the HF access token to all 3 secrets will work.

I want to duplicate a space rather than clone it cos I wanted to try this out quickly on HF server. Embedding the space will probably be running from the same server, hence the speed issue, which is why I wanted to duplicate the space.

I was under the (probably mistaken) understanding those 'space secrets' are supplied by you so that if others wish to use your space they will need to supply your designated secrets.
I didn't see any information or documentation clarifying that however.

Hello, indeed to summarize the current situation:

  • the AI Comic Factory isn't a single all-in-one Gradio app (like for the other HF space): it's a production web app, that uses multiple services to run
  • that's why it is a bit difficult (but not impossible) to make it cloneable by people
  • same for the secret variables, we can't just give away the "keys to the cloud" (behind there are expensive servers for llama 70b, a dozen of SDXL servers etc which cost money)
  • still I understand that people want to be able to duplicate (that's natural, even myself I would like to try it with OpenAI, Replicate etc for various experiment)

So what I propose:

Not to go off topic but you mention in your documentation the costs involved in maintaining AI Comic Factory.
I haven't seen specific ways to contribute financially to creators of Hugging Face spaces.
Being new here I'll guess there are means to do this but I'm not yet familiar with them.

Hello, indeed to summarize the current situation:

  • the AI Comic Factory isn't a single all-in-one Gradio app (like for the other HF space): it's a production web app, that uses multiple services to run
  • that's why it is a bit difficult (but not impossible) to make it cloneable by people
  • same for the secret variables, we can't just give away the "keys to the cloud" (behind there are expensive servers for llama 70b, a dozen of SDXL servers etc which cost money)
  • still I understand that people want to be able to duplicate (that's natural, even myself I would like to try it with OpenAI, Replicate etc for various experiment)

So what I propose:

Thanks very much! I absolutely love this tool! Maybe a github page will be good. And yes, I agree with Rodney, perhaps a way to contribute to your work and expense.

@o0Rodney0o some creators have a patreon page for contribution.

Sign up or log in to comment