fffiloni commited on
Commit
bbf9a90
1 Parent(s): 3954375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import os
3
-
4
- pix2pix = gr.Blocks.load(name="spaces/patrickvonplaten/instruct-pix2pix")
5
 
6
  def infer(prompt,image):
7
  result = pix2pix(prompt,
 
1
  import gradio as gr
2
  import os
3
+ token = os.environ.get('HF_TOKEN')
4
+ pix2pix = gr.Blocks.load(name="spaces/fffiloni/instruct-pix2pix-clone", api_key=token)
5
 
6
  def infer(prompt,image):
7
  result = pix2pix(prompt,