Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
-
|
|
|
5 |
stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
6 |
clip_interrogator_2 = gr.Blocks.load(name="spaces/fffiloni/CLIP-Interrogator-2")
|
7 |
|
@@ -27,4 +28,4 @@ def infer(prompt):
|
|
27 |
prompt_input = gr.Textbox(lines=4, label="Input Stable Diffusion 1 prompt")
|
28 |
prompt_output = gr.Textbox(lines=4, label="Converted Stable Diffusion 2 prompt ")
|
29 |
|
30 |
-
gr.Interface(fn=infer, inputs=[prompt_input], outputs=[prompt_output]).queue(max_size=10).launch(enable_queue=True)
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
+
title="Prompt Converter"
|
5 |
+
description="Convert a v1.x stable diffusion prompt to a stable diffusion 2.x prompt"
|
6 |
stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
7 |
clip_interrogator_2 = gr.Blocks.load(name="spaces/fffiloni/CLIP-Interrogator-2")
|
8 |
|
|
|
28 |
prompt_input = gr.Textbox(lines=4, label="Input Stable Diffusion 1 prompt")
|
29 |
prompt_output = gr.Textbox(lines=4, label="Converted Stable Diffusion 2 prompt ")
|
30 |
|
31 |
+
gr.Interface(fn=infer, inputs=[prompt_input], outputs=[prompt_output],title=title,description=description).queue(max_size=10).launch(enable_queue=True)
|