poemsforaphrodite commited on
Commit
4f95172
·
verified ·
1 Parent(s): a72e660

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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}