Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
|
4 |
-
pix2pix = gr.Blocks.load(name="spaces/
|
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,
|