update
Browse files
.DS_Store
DELETED
Binary file (6.15 kB)
|
|
app.py
CHANGED
@@ -160,7 +160,7 @@ with gr.Blocks(css=css, title="ClueAI") as demo:
|
|
160 |
gr.Markdown('<h1><center><font color=red style="font-size:50px;">ClueAI全能师</font></center></h1>')
|
161 |
with gr.TabItem("文本生成", id='_tab'):
|
162 |
with gr.Row(variant="compact").style( equal_height=True):
|
163 |
-
text = gr.Textbox("
|
164 |
label="编辑内容", show_label=False, max_lines=20,
|
165 |
placeholder="在这里输入...",
|
166 |
)
|
@@ -222,4 +222,5 @@ with gr.Blocks(css=css, title="ClueAI") as demo:
|
|
222 |
generate_prompt_btn.click(inference_image, inputs=input_params, outputs=[t2i_gallery])
|
223 |
text.submit(inference_image, inputs=input_params, outputs=t2i_gallery)
|
224 |
btn.click(inference_image, inputs=input_params, outputs=t2i_gallery)
|
|
|
225 |
demo.launch()
|
|
|
160 |
gr.Markdown('<h1><center><font color=red style="font-size:50px;">ClueAI全能师</font></center></h1>')
|
161 |
with gr.TabItem("文本生成", id='_tab'):
|
162 |
with gr.Row(variant="compact").style( equal_height=True):
|
163 |
+
text = gr.Textbox("标题:俄天然气管道泄漏爆炸",
|
164 |
label="编辑内容", show_label=False, max_lines=20,
|
165 |
placeholder="在这里输入...",
|
166 |
)
|
|
|
222 |
generate_prompt_btn.click(inference_image, inputs=input_params, outputs=[t2i_gallery])
|
223 |
text.submit(inference_image, inputs=input_params, outputs=t2i_gallery)
|
224 |
btn.click(inference_image, inputs=input_params, outputs=t2i_gallery)
|
225 |
+
#demo.queue(concurrency_count=3)
|
226 |
demo.launch()
|