Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
93780aa
1
Parent(s):
547b516
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,12 @@ def run_edit(image, prompt):
|
|
44 |
resolution = 1024
|
45 |
image.resize((resolution, resolution))
|
46 |
return pipe_edit(prompt=prompt,image=image,height=resolution,width=resolution,num_inference_steps=20).images[0]
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
48 |
with gr.Blocks() as demo:
|
49 |
gr.Markdown('''# CosXL demo
|
50 |
Unofficial demo for CosXL, a SDXL model tuned to produce full color range images. CosXL Edit allows you to perform edits on images. Both have a [non-commercial community license](https://huggingface.co/stabilityai/cosxl/blob/main/LICENSE)
|
|
|
44 |
resolution = 1024
|
45 |
image.resize((resolution, resolution))
|
46 |
return pipe_edit(prompt=prompt,image=image,height=resolution,width=resolution,num_inference_steps=20).images[0]
|
47 |
+
css = '''
|
48 |
+
.gradio-container{
|
49 |
+
max-width: 768px !important;
|
50 |
+
margin: 0 auto;
|
51 |
+
}
|
52 |
+
'''
|
53 |
with gr.Blocks() as demo:
|
54 |
gr.Markdown('''# CosXL demo
|
55 |
Unofficial demo for CosXL, a SDXL model tuned to produce full color range images. CosXL Edit allows you to perform edits on images. Both have a [non-commercial community license](https://huggingface.co/stabilityai/cosxl/blob/main/LICENSE)
|