update layout
Browse files
app.py
CHANGED
|
@@ -40,6 +40,11 @@ def chat(image_in, message, history, progress=gr.Progress(track_tqdm=True)):
|
|
| 40 |
return history, history
|
| 41 |
|
| 42 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
with gr.Row():
|
| 44 |
with gr.Column():
|
| 45 |
image_in = gr.Image(type='pil', label="Original Image")
|
|
|
|
| 40 |
return history, history
|
| 41 |
|
| 42 |
with gr.Blocks() as demo:
|
| 43 |
+
gr.HTML("""<h1 style="font-weight: 900; margin-bottom: 7px;"> InstructPix2Pix: Learning to Follow Image Editing Instructions </h1>
|
| 44 |
+
<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
| 45 |
+
<a href="https://huggingface.co/spaces/ysharma/InstructPix2Pix_Chatbot?duplicate=true">
|
| 46 |
+
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
| 47 |
+
<p/>""")
|
| 48 |
with gr.Row():
|
| 49 |
with gr.Column():
|
| 50 |
image_in = gr.Image(type='pil', label="Original Image")
|