laxsvips commited on
Commit
db5cd60
·
1 Parent(s): d8f7579

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +1 -0
chat.py CHANGED
@@ -161,6 +161,7 @@ def initialize_game(game_id, user_id, user_input):
161
  return llm_prompt_op.choices[0]["message"]["content"]
162
 
163
  def generate_image_prompt(game_id, user_id, user_input):
 
164
  payload = list()
165
  file_data = open_file(f"{file_path}/image_prompt_leo.txt").replace("<<PROMPT_FOR_IMG>>", user_input)
166
  leo_input_msg = call_gpt(file_data)
 
161
  return llm_prompt_op.choices[0]["message"]["content"]
162
 
163
  def generate_image_prompt(game_id, user_id, user_input):
164
+ user_input = user_input.replace('You have a manual of this newly created simulation in your mind. Now what is the first thing you will do in this world?', '')
165
  payload = list()
166
  file_data = open_file(f"{file_path}/image_prompt_leo.txt").replace("<<PROMPT_FOR_IMG>>", user_input)
167
  leo_input_msg = call_gpt(file_data)