update desc
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def chat(image_in, in_steps, in_guidance_scale, in_img_guidance_scale, image_hid
|
|
| 96 |
|
| 97 |
|
| 98 |
with gr.Blocks() as demo:
|
| 99 |
-
gr.Markdown("""<h1><center> Chat Interface with InstructPix2Pix: Give Image Editing Instructions
|
| 100 |
<p>For faster inference without waiting in the queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
| 101 |
<a href="https://huggingface.co/spaces/ysharma/InstructPix2Pix_Chatbot?duplicate=true">
|
| 102 |
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
|
@@ -112,7 +112,7 @@ with gr.Blocks() as demo:
|
|
| 112 |
in_steps = gr.Number(label="Enter the number of Inference steps", value = 20)
|
| 113 |
in_guidance_scale = gr.Slider(1,10, step=0.5, label="Set Guidance scale", value=7.5)
|
| 114 |
in_img_guidance_scale = gr.Slider(1,10, step=0.5, label="Set Image Guidance scale", value=1.5)
|
| 115 |
-
image_hid = gr.Image(type='pil')
|
| 116 |
img_name_temp_out = gr.Textbox(visible=False)
|
| 117 |
counter_out = gr.Number(visible=False, value=0, precision=0)
|
| 118 |
chatbot = gr.Chatbot()
|
|
|
|
| 96 |
|
| 97 |
|
| 98 |
with gr.Blocks() as demo:
|
| 99 |
+
gr.Markdown("""<h1><center> Chat Interface with InstructPix2Pix: Give Image Editing Instructions</h1></center>
|
| 100 |
<p>For faster inference without waiting in the queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
| 101 |
<a href="https://huggingface.co/spaces/ysharma/InstructPix2Pix_Chatbot?duplicate=true">
|
| 102 |
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
|
|
|
| 112 |
in_steps = gr.Number(label="Enter the number of Inference steps", value = 20)
|
| 113 |
in_guidance_scale = gr.Slider(1,10, step=0.5, label="Set Guidance scale", value=7.5)
|
| 114 |
in_img_guidance_scale = gr.Slider(1,10, step=0.5, label="Set Image Guidance scale", value=1.5)
|
| 115 |
+
image_hid = gr.Image(type='pil', visible=False)
|
| 116 |
img_name_temp_out = gr.Textbox(visible=False)
|
| 117 |
counter_out = gr.Number(visible=False, value=0, precision=0)
|
| 118 |
chatbot = gr.Chatbot()
|