GalaxyTab commited on
Commit
099286f
·
1 Parent(s): 947d81e

Fixing a scope issue

Browse files
Files changed (1) hide show
  1. chat_application/main.py +3 -0
chat_application/main.py CHANGED
@@ -185,6 +185,9 @@ def send_initial_post(room_id, delay):
185
  return
186
  initialPost = topic_info["post"]
187
  # Add the topic text to bots prompts
 
 
 
188
  FROBOT_PROMPT = f"The topic of this chat is:\n{topic_info['text']}\n"+FROBOT_PROMPT
189
  COOLBOT_PROMPT = f"The topic of this chat is:\n{topic_info['text']}\n"+COOLBOT_PROMPT
190
  HOTBOT_PROMPT = f"The topic of this chat is:\n{topic_info['text']}\n"+HOTBOT_PROMPT
 
185
  return
186
  initialPost = topic_info["post"]
187
  # Add the topic text to bots prompts
188
+ global FROBOT_PROMPT
189
+ global COOLBOT_PROMPT
190
+ global HOTBOT_PROMPT
191
  FROBOT_PROMPT = f"The topic of this chat is:\n{topic_info['text']}\n"+FROBOT_PROMPT
192
  COOLBOT_PROMPT = f"The topic of this chat is:\n{topic_info['text']}\n"+COOLBOT_PROMPT
193
  HOTBOT_PROMPT = f"The topic of this chat is:\n{topic_info['text']}\n"+HOTBOT_PROMPT