Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,8 +63,6 @@ def rename(orig_author: str):
|
|
| 63 |
@cl.on_chat_start
|
| 64 |
async def init():
|
| 65 |
|
| 66 |
-
html_element = cl.Text(content=html_content, name="HTML Table", display="inline")
|
| 67 |
-
await cl.Message(content="Her er noen eksempler på spørsmål:", elements=[html_element]).send()
|
| 68 |
msg = cl.Message(content=f"Building vector store...")
|
| 69 |
await msg.send()
|
| 70 |
|
|
@@ -93,6 +91,9 @@ async def init():
|
|
| 93 |
chain_type_kwargs = {"prompt": prompt}
|
| 94 |
)
|
| 95 |
|
|
|
|
|
|
|
|
|
|
| 96 |
html_content = """
|
| 97 |
<table style="width: 80%; background-color: #1e1e1e; color: white; border-radius: 8px;">
|
| 98 |
<tr>
|
|
@@ -108,9 +109,6 @@ async def init():
|
|
| 108 |
</tr>
|
| 109 |
</table>
|
| 110 |
"""
|
| 111 |
-
|
| 112 |
-
await cl.Message(content=f"FAISS ready. Her er noen eksempler på spørsmål:☕️", elements=[cl.HTML(content=html_table)]).send()
|
| 113 |
-
|
| 114 |
#msg.content = f"FAISS ready. Her er noen eksempler på spørsmål:\n\n{markdown}"
|
| 115 |
#await msg.send()
|
| 116 |
|
|
|
|
| 63 |
@cl.on_chat_start
|
| 64 |
async def init():
|
| 65 |
|
|
|
|
|
|
|
| 66 |
msg = cl.Message(content=f"Building vector store...")
|
| 67 |
await msg.send()
|
| 68 |
|
|
|
|
| 91 |
chain_type_kwargs = {"prompt": prompt}
|
| 92 |
)
|
| 93 |
|
| 94 |
+
html_element = cl.Text(content=html_content, name="HTML Table", display="inline")
|
| 95 |
+
await cl.Message(content=f"FAISS ready. Her er noen eksempler på spørsmål:☕️", elements=[html_element]).send()
|
| 96 |
+
|
| 97 |
html_content = """
|
| 98 |
<table style="width: 80%; background-color: #1e1e1e; color: white; border-radius: 8px;">
|
| 99 |
<tr>
|
|
|
|
| 109 |
</tr>
|
| 110 |
</table>
|
| 111 |
"""
|
|
|
|
|
|
|
|
|
|
| 112 |
#msg.content = f"FAISS ready. Her er noen eksempler på spørsmål:\n\n{markdown}"
|
| 113 |
#await msg.send()
|
| 114 |
|