Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks. (#2975)

* Create a Gradio notebook for the new InstantId model.

* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.

* Update the image generation Gradio notebook to support Dreambooth finetuning.

* linter update

* linter update

* minor fix to the instant-id notebook.

* Minor fix to the stable diffusion gradio notebook.

* Split the 'instant-id' deployment notebook prediction into two sections.

* add `deployment_source` to the notebook.

* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.

* add the dreambooth_lora notebook.

* minor update.

* Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks.

* Lint format.

* minor updates
This commit is contained in:
Gary Wei
2024-05-15 16:34:58 +00:00
committed by GitHub
parent 4fc807c570
commit b630f8d5f0
2 changed files with 7 additions and 3 deletions
@@ -134,6 +134,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "1cc26e68d7b0"
},
"outputs": [],
@@ -544,9 +545,9 @@
" outputs=image_output,\n",
" )\n",
"\n",
"\n",
"show_debug_logs = True # @param {type: \"boolean\"}\n",
"demo.queue()\n",
"demo.launch(share=True, inline=False, debug=True, show_error=True)"
"demo.launch(share=True, inline=False, debug=show_debug_logs, show_error=True)"
]
}
],
@@ -86,6 +86,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "855d6b96f291"
},
"outputs": [],
@@ -167,6 +168,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "1cc26e68d7b0"
},
"outputs": [],
@@ -1406,8 +1408,9 @@
" with gr.TabItem(\"Dreambooth Finetune\"):\n",
" create_dreambooth_workshop()\n",
"\n",
"show_debug_logs = True # @param {type: \"boolean\"}\n",
"demo.queue()\n",
"demo.launch(share=True, inline=False, debug=True, show_error=True)"
"demo.launch(share=True, inline=False, debug=show_debug_logs, show_error=True)"
]
}
],