Commit
·
cf21c0b
1
Parent(s):
5602c1a
Update app.py
Browse files
app.py
CHANGED
@@ -38,14 +38,7 @@ def generate(
|
|
38 |
yield output
|
39 |
return output
|
40 |
|
41 |
-
custom_html = "
|
42 |
-
<div class="avatar-container svelte-12dsd9j">
|
43 |
-
<img class="avatar-image svelte-12dsd9j" src="https://doctorvivin-mixtral-chat.hf.space/--replicas/gyo76/file=/tmp/gradio/199af69ab60420a790b49edd574dbab1da62ed0a/botm.png" alt="bot avatar"></div>
|
44 |
-
<div class="message bot svelte-12dsd9j message-fit message-bubble-border" style="text-align: right;">
|
45 |
-
<button data-testid="bot" dir="ltr" aria-label="bot's message:' Hello! How can I help you today? If you have any questions or need assistance with something, feel free to ask. I'm here to provide information and support.</s>" class="svelte-12dsd9j latest" style="user-select: text; text-align: left;">
|
46 |
-
<span class="md svelte-r3x3aw chatbot"><p>Hello! How can I help you today? If you have any questions or need assistance with something, feel free to ask. I'm here to provide information and support.</p>
|
47 |
-
</span></button></div><div class="message-buttons-bot message-buttons-bubble with-avatar svelte-12dsd9j message-buttons-fit bubble-buttons-user"><button aria-label="like" class="svelte-3snf3m"><svg xmlns="http://www.w3.org/2000/svg" width="15px" height="15px" viewBox="0 0 24 24" fill="none" stroke-width="1.5" color="currentColor"><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M16.472 20H4.1a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h2.768a2 2 0 0 0 1.715-.971l2.71-4.517a1.631 1.631 0 0 1 2.961 1.308l-1.022 3.408a.6.6 0 0 0 .574.772h4.575a2 2 0 0 1 1.93 2.526l-1.91 7A2 2 0 0 1 16.473 20Z"></path><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M7 20V9"></path></svg></button> <button aria-label="dislike" class="svelte-3snf3m"><svg xmlns="http://www.w3.org/2000/svg" width="15px" height="15px" viewBox="0 0 24 24" fill="none" stroke-width="1.5" color="currentColor"><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M16.472 3.5H4.1a.6.6 0 0 0-.6.6v9.8a.6.6 0 0 0 .6.6h2.768a2 2 0 0 1 1.715.971l2.71 4.517a1.631 1.631 0 0 0 2.961-1.308l-1.022-3.408a.6.6 0 0 1 .574-.772h4.575a2 2 0 0 0 1.93-2.526l-1.91-7A2 2 0 0 0 16.473 3.5Z"></path><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M7 14.5v-11"></path></svg></button> <button title="copy" aria-label="Copy message" class="svelte-11hlfrc"><svg xmlns="http://www.w3.org/2000/svg" width="15px" height="14px" viewBox="0 0 33 33" color="currentColor"><path fill="currentColor" d="M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"></path><path fill="currentColor" d="M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"></path></svg> </button></div>
|
48 |
-
</div>"
|
49 |
|
50 |
mychatbot = gr.Chatbot(
|
51 |
avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True,)
|
|
|
38 |
yield output
|
39 |
return output
|
40 |
|
41 |
+
custom_html = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
mychatbot = gr.Chatbot(
|
44 |
avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True,)
|