Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ style="""
|
|
126 |
}
|
127 |
|
128 |
"""
|
129 |
-
with gr.Blocks(css=style
|
130 |
gr.HTML("""<div class="top_head"><center><br><h1 class="top_h1">Mixtral Chat Diffusion</h1><br><h3 class="top_h1">This chatbot will generate images</h3></center></div?""")
|
131 |
#chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
132 |
with gr.Row():
|
@@ -144,7 +144,7 @@ with gr.Blocks(css=style,concurrency_count=20) as iface:
|
|
144 |
clear = gr.ClearButton([msg, chatbot])
|
145 |
with gr.Column(scale=2):
|
146 |
sumbox=gr.Image(label="Image")
|
147 |
-
sub_b = submit_b.click(run, [msg,chatbot,model_drop,chat_model_drop,agent_choice],[chatbot,sumbox])
|
148 |
-
sub_e = msg.submit(run, [msg, chatbot,model_drop,chat_model_drop,agent_choice], [chatbot,sumbox])
|
149 |
stop_b.click(None,None,None, cancels=[sub_b,sub_e])
|
150 |
-
iface.launch()
|
|
|
126 |
}
|
127 |
|
128 |
"""
|
129 |
+
with gr.Blocks(css=style) as iface:
|
130 |
gr.HTML("""<div class="top_head"><center><br><h1 class="top_h1">Mixtral Chat Diffusion</h1><br><h3 class="top_h1">This chatbot will generate images</h3></center></div?""")
|
131 |
#chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
132 |
with gr.Row():
|
|
|
144 |
clear = gr.ClearButton([msg, chatbot])
|
145 |
with gr.Column(scale=2):
|
146 |
sumbox=gr.Image(label="Image")
|
147 |
+
sub_b = submit_b.click(run, [msg,chatbot,model_drop,chat_model_drop,agent_choice],[chatbot,sumbox],concurrency_limit=20)
|
148 |
+
sub_e = msg.submit(run, [msg, chatbot,model_drop,chat_model_drop,agent_choice], [chatbot,sumbox],concurrency_limit=20)
|
149 |
stop_b.click(None,None,None, cancels=[sub_b,sub_e])
|
150 |
+
iface.queue(default_concurrency_limit=None).launch()
|