Spaces:
Runtime error
Runtime error
mateoluksenberg
commited on
Commit
•
796bfaf
1
Parent(s):
1177326
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,9 @@ TITLE = "<h1>3ML-bot</h1>"
|
|
21 |
|
22 |
DESCRIPTION = f"""
|
23 |
<center>
|
24 |
-
<p
|
25 |
<br>
|
|
|
26 |
</center>"""
|
27 |
|
28 |
CSS = """
|
@@ -181,7 +182,10 @@ chat_input = gr.MultimodalTextbox(
|
|
181 |
|
182 |
)
|
183 |
EXAMPLES = [
|
184 |
-
|
|
|
|
|
|
|
185 |
]
|
186 |
|
187 |
with gr.Blocks(css=CSS, theme="soft", fill_height=True) as demo:
|
@@ -239,8 +243,8 @@ with gr.Blocks(css=CSS, theme="soft", fill_height=True) as demo:
|
|
239 |
),
|
240 |
],
|
241 |
),
|
242 |
-
|
243 |
|
244 |
if __name__ == "__main__":
|
245 |
|
246 |
-
demo.queue(api_open=False).launch(show_api=False, share=False, )#server_name="0.0.0.0", )
|
|
|
21 |
|
22 |
DESCRIPTION = f"""
|
23 |
<center>
|
24 |
+
<p>😊 A Multi-Modal Multi-Lingual(3ML) Chat.
|
25 |
<br>
|
26 |
+
🚀 MODEL NOW: <a href="https://hf.co/nikravan/glm-4vq">{MODEL_NAME}</a>
|
27 |
</center>"""
|
28 |
|
29 |
CSS = """
|
|
|
182 |
|
183 |
)
|
184 |
EXAMPLES = [
|
185 |
+
[{"text": "Write a poem about spring season in French Language", }],
|
186 |
+
[{"text": "what does this chart mean?", "files": ["sales.png"]}],
|
187 |
+
[{"text": "¿Qué está escrito a mano en esta foto?", "files": ["receipt1.png"]}],
|
188 |
+
[{"text": "در مورد این عکس توضیح بده و بگو این چه فصلی می تواند باشد", "files": ["nature.jpg"]}]
|
189 |
]
|
190 |
|
191 |
with gr.Blocks(css=CSS, theme="soft", fill_height=True) as demo:
|
|
|
243 |
),
|
244 |
],
|
245 |
),
|
246 |
+
gr.Examples(EXAMPLES, [chat_input])
|
247 |
|
248 |
if __name__ == "__main__":
|
249 |
|
250 |
+
demo.queue(api_open=False).launch(show_api=False, share=False, )#server_name="0.0.0.0", )
|