Update app.py
Browse files
app.py
CHANGED
|
@@ -85,17 +85,28 @@ with gr.Blocks(css=css) as demo:
|
|
| 85 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
| 86 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
| 87 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
see_prompts.click(get_prompts,
|
| 90 |
inputs = [input_text],
|
| 91 |
outputs = [
|
| 92 |
text_output
|
| 93 |
-
], api_name="
|
| 94 |
diffuse_btn.click(get_images,
|
| 95 |
inputs = [
|
| 96 |
text_output
|
| 97 |
],
|
| 98 |
-
outputs = [sd_output, community_icon, loading_icon, share_button], api_name="
|
| 99 |
share_button.click(None, [], [], _js=share_js)
|
| 100 |
|
| 101 |
|
|
|
|
| 85 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
| 86 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
| 87 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
| 88 |
+
with gr.Column(elem_id="generatedAI")
|
| 89 |
+
TextAI = gr.Textbox(
|
| 90 |
+
label="🏭 Expanded AI text prompts",
|
| 91 |
+
lines=4,
|
| 92 |
+
elem_id="translated1"
|
| 93 |
+
)
|
| 94 |
+
TextAI2 = gr.Textbox(
|
| 95 |
+
label="🏭 Expanded AI text prompts",
|
| 96 |
+
lines=4,
|
| 97 |
+
elem_id="translated2"
|
| 98 |
+
)
|
| 99 |
|
| 100 |
see_prompts.click(get_prompts,
|
| 101 |
inputs = [input_text],
|
| 102 |
outputs = [
|
| 103 |
text_output
|
| 104 |
+
], api_name="TextAI")
|
| 105 |
diffuse_btn.click(get_images,
|
| 106 |
inputs = [
|
| 107 |
text_output
|
| 108 |
],
|
| 109 |
+
outputs = [sd_output, community_icon, loading_icon, share_button], api_name="TextAI2")
|
| 110 |
share_button.click(None, [], [], _js=share_js)
|
| 111 |
|
| 112 |
|