Update app.py
Browse files
app.py
CHANGED
|
@@ -102,5 +102,19 @@ with gr.Blocks(
|
|
| 102 |
inputs=prompt,
|
| 103 |
outputs=img
|
| 104 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
app.launch()
|
|
|
|
| 102 |
inputs=prompt,
|
| 103 |
outputs=img
|
| 104 |
)
|
| 105 |
+
with gr.Blocks(title="Maind AI") as demo:
|
| 106 |
+
gr.Markdown(
|
| 107 |
+
"""
|
| 108 |
+
<div style="text-align:center">
|
| 109 |
+
<img src="logo.png" width="120">
|
| 110 |
+
<h2>Maind AI</h2>
|
| 111 |
+
</div>
|
| 112 |
+
"""
|
| 113 |
+
)
|
| 114 |
+
|
| 115 |
+
chatbot = gr.Chatbot()
|
| 116 |
+
msg = gr.Textbox()
|
| 117 |
+
msg.submit(fn=chat, inputs=msg, outputs=chatbot)
|
| 118 |
+
|
| 119 |
|
| 120 |
app.launch()
|