Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,8 @@ def improve_image(img):
|
|
23 |
resp_img = gr.processing_utils.decode_base64_to_image((resp_obj.json())['data'][0])
|
24 |
return resp_img
|
25 |
|
26 |
-
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4",use_auth_token=True)
|
27 |
-
pipe = pipe.to("cuda")
|
28 |
|
29 |
def generate(celebrity, setting):
|
30 |
# ANSWER HERE
|
@@ -41,6 +41,6 @@ gr.Interface(
|
|
41 |
outputs = gr.Image(type='pill'),
|
42 |
allow_flagging="manual",
|
43 |
flagging_options = ['Incorrect movie poster','Incorrect Actor','Other Problem'],
|
44 |
-
flagging_callback=hf_writer,
|
45 |
flagging_dir='/flagged_data'
|
46 |
).launch()
|
|
|
23 |
resp_img = gr.processing_utils.decode_base64_to_image((resp_obj.json())['data'][0])
|
24 |
return resp_img
|
25 |
|
26 |
+
#pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4",use_auth_token=True)
|
27 |
+
#pipe = pipe.to("cuda")
|
28 |
|
29 |
def generate(celebrity, setting):
|
30 |
# ANSWER HERE
|
|
|
41 |
outputs = gr.Image(type='pill'),
|
42 |
allow_flagging="manual",
|
43 |
flagging_options = ['Incorrect movie poster','Incorrect Actor','Other Problem'],
|
44 |
+
#flagging_callback=hf_writer,
|
45 |
flagging_dir='/flagged_data'
|
46 |
).launch()
|