Spaces:
Runtime error
Runtime error
Brian Watson
commited on
Commit
·
058ab8d
1
Parent(s):
1136965
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,7 @@ models = [
|
|
| 30 |
{"name": "Wavyfusion", "url": "wavymulder/wavyfusion"},
|
| 31 |
]
|
| 32 |
|
|
|
|
| 33 |
current_model = models[0]
|
| 34 |
|
| 35 |
text_gen = gr.Interface.load("spaces/daspartho/prompt-extend")
|
|
@@ -63,7 +64,7 @@ with gr.Blocks() as myface:
|
|
| 63 |
|
| 64 |
with gr.Row():
|
| 65 |
with gr.Row():
|
| 66 |
-
input_text = gr.Textbox(label="Prompt idea",
|
| 67 |
# Model selection dropdown
|
| 68 |
model_name1 = gr.Dropdown(
|
| 69 |
label="Choose Model",
|
|
@@ -92,16 +93,8 @@ with gr.Blocks() as myface:
|
|
| 92 |
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 93 |
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 94 |
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 95 |
-
with gr.Row():
|
| 96 |
-
output7 = gr.Image(label="")
|
| 97 |
-
output8 = gr.Image(label="")
|
| 98 |
-
output9 = gr.Image(label="")
|
| 99 |
-
with gr.Row():
|
| 100 |
-
magic7 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 101 |
-
magic8 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 102 |
-
magic9 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 103 |
|
| 104 |
-
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6
|
| 105 |
|
| 106 |
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
| 107 |
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
|
@@ -109,9 +102,6 @@ with gr.Blocks() as myface:
|
|
| 109 |
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
| 110 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
| 111 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
| 112 |
-
run.click(send_it, inputs=[magic7, model_name1], outputs=[output7])
|
| 113 |
-
run.click(send_it, inputs=[magic8, model_name1], outputs=[output8])
|
| 114 |
-
run.click(send_it, inputs=[magic9, model_name1], outputs=[output9])
|
| 115 |
|
| 116 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
| 117 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
|
@@ -119,9 +109,6 @@ with gr.Blocks() as myface:
|
|
| 119 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
|
| 120 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
|
| 121 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
|
| 122 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic7])
|
| 123 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic8])
|
| 124 |
-
see_prompts.click(text_it, inputs=[input_text], outputs=[magic9])
|
| 125 |
|
| 126 |
myface.queue(concurrency_count=200)
|
| 127 |
myface.launch(inline=True, show_api=False, max_threads=400)
|
|
|
|
| 30 |
{"name": "Wavyfusion", "url": "wavymulder/wavyfusion"},
|
| 31 |
]
|
| 32 |
|
| 33 |
+
|
| 34 |
current_model = models[0]
|
| 35 |
|
| 36 |
text_gen = gr.Interface.load("spaces/daspartho/prompt-extend")
|
|
|
|
| 64 |
|
| 65 |
with gr.Row():
|
| 66 |
with gr.Row():
|
| 67 |
+
input_text = gr.Textbox(label="Prompt idea", placeholder="", lines=1)
|
| 68 |
# Model selection dropdown
|
| 69 |
model_name1 = gr.Dropdown(
|
| 70 |
label="Choose Model",
|
|
|
|
| 93 |
magic4 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 94 |
magic5 = gr.Textbox(label="Generated Prompt", lines=2)
|
| 95 |
magic6 = gr.Textbox(label="Generated Prompt", lines=2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
+
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
|
| 98 |
|
| 99 |
run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
|
| 100 |
run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
|
|
|
|
| 102 |
run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
|
| 103 |
run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
|
| 104 |
run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
|
| 107 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
|
|
|
|
| 109 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
|
| 110 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
|
| 111 |
see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
myface.queue(concurrency_count=200)
|
| 114 |
myface.launch(inline=True, show_api=False, max_threads=400)
|