inventwithdean commited on
Commit
5eac214
·
1 Parent(s): 45c22d9

yt poll edit

Browse files
Files changed (2) hide show
  1. host.py +3 -4
  2. yt_chat.py +1 -1
host.py CHANGED
@@ -5,11 +5,10 @@ class Host:
5
  self.client = client
6
  self.turn_limit = 7
7
  self.show_state = show_state
8
- system_prompt = """You are the Host of a Talk Show, where users come and have a chat.
9
  There is a TV Display near you which the crew members use to display images based on your conversation.
10
- The TV is not in control of the guest. It is controlled by crew members and is only for graphic uplifting of the conversation.
11
- Do not talk about TV unless Crew adds it in the chat with tag [TV Shows: <description>].
12
- Keep your responses short, like two or three sentences, and be witty."""
13
  self.system_message = {"role": "system", "content": system_prompt}
14
 
15
  self.messages = [self.system_message]
 
5
  self.client = client
6
  self.turn_limit = 7
7
  self.show_state = show_state
8
+ system_prompt = """You are the Host of a Talk Show called "The Emergent Show", where guests come and have a chat.
9
  There is a TV Display near you which the crew members use to display images based on your conversation.
10
+ Do not talk about TV unless you see this: [TV Shows: <description>] which means that crew has displayed something on the TV.
11
+ Keep your responses short, like three or four sentences, and be witty."""
 
12
  self.system_message = {"role": "system", "content": system_prompt}
13
 
14
  self.messages = [self.system_message]
yt_chat.py CHANGED
@@ -13,7 +13,7 @@ api_key_unreal = os.getenv("API_KEY_UNREAL")
13
 
14
  API_KEY = os.getenv("YOUTUBE_API_KEY")
15
  VIDEO_ID = "xBVJIJQg1FY"
16
- POLL_INTERVAL = 10 # seconds
17
 
18
 
19
  class StreamChatHost:
 
13
 
14
  API_KEY = os.getenv("YOUTUBE_API_KEY")
15
  VIDEO_ID = "xBVJIJQg1FY"
16
+ POLL_INTERVAL = 20 # seconds
17
 
18
 
19
  class StreamChatHost: