Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -181,9 +181,10 @@ async def generate_embed_code(botid: str):
|
|
| 181 |
"""
|
| 182 |
Generates and returns a dynamic embed code snippet for the provided botid.
|
| 183 |
"""
|
|
|
|
| 184 |
embed_snippet = f"""
|
| 185 |
<!-- SmartlyQ Chatbot Embed Code -->
|
| 186 |
<div id="smartlyq-chatbot-container"></div>
|
| 187 |
-
<script src="/static/chatbot.js?botid={botid}"></script>
|
| 188 |
"""
|
| 189 |
return {"embed_code": embed_snippet}
|
|
|
|
| 181 |
"""
|
| 182 |
Generates and returns a dynamic embed code snippet for the provided botid.
|
| 183 |
"""
|
| 184 |
+
base_url = "https://poemsforaphrodite-bot.hf.space"
|
| 185 |
embed_snippet = f"""
|
| 186 |
<!-- SmartlyQ Chatbot Embed Code -->
|
| 187 |
<div id="smartlyq-chatbot-container"></div>
|
| 188 |
+
<script src="{base_url}/static/chatbot.js?botid={botid}"></script>
|
| 189 |
"""
|
| 190 |
return {"embed_code": embed_snippet}
|