Update app.py
Browse files
app.py
CHANGED
@@ -115,8 +115,8 @@ with image_blocks as demo:
|
|
115 |
with gr.Column():
|
116 |
with gr.Row():
|
117 |
with gr.Column():
|
118 |
-
image = gr.Image(
|
119 |
-
reference = gr.Image(
|
120 |
|
121 |
with gr.Column():
|
122 |
image_out = gr.Image(label="Output", elem_id="output-img").style(height=400)
|
@@ -147,13 +147,16 @@ with image_blocks as demo:
|
|
147 |
share_button.click(None, [], [], _js=share_js)
|
148 |
|
149 |
gr.HTML(
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
The model is licensed with a <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" style="text-decoration: underline;" target="_blank">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" target="_blank" style="text-decoration: underline;" target="_blank">read the license</a></p>
|
158 |
"""
|
159 |
-
)
|
|
|
|
|
|
|
|
115 |
with gr.Column():
|
116 |
with gr.Row():
|
117 |
with gr.Column():
|
118 |
+
image = gr.Image(tool='sketch', elem_id="image_upload", type="pil", label="Source Image")
|
119 |
+
reference = gr.Image(elem_id="image_upload", type="pil", label="Reference Image")
|
120 |
|
121 |
with gr.Column():
|
122 |
image_out = gr.Image(label="Output", elem_id="output-img").style(height=400)
|
|
|
147 |
share_button.click(None, [], [], _js=share_js)
|
148 |
|
149 |
gr.HTML(
|
150 |
+
"""
|
151 |
+
<div class="footer">
|
152 |
+
<p>Model by <a href="" style="text-decoration: underline;" target="_blank">Fantasy-Studio</a> - Gradio Demo by π€ Hugging Face
|
153 |
+
</p>
|
154 |
+
</div>
|
155 |
+
<div class="acknowledgments">
|
156 |
+
<p><h4>LICENSE</h4>
|
157 |
The model is licensed with a <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" style="text-decoration: underline;" target="_blank">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" target="_blank" style="text-decoration: underline;" target="_blank">read the license</a></p>
|
158 |
"""
|
159 |
+
)
|
160 |
+
|
161 |
+
# Launch the Gradio interface
|
162 |
+
image_blocks.launch()
|