laxsvips commited on
Commit
7dc163e
·
1 Parent(s): 40f23fd

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +1 -1
chat.py CHANGED
@@ -166,7 +166,7 @@ def generate_image_prompt(game_id, user_id, user_input):
166
  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?', '')
167
  payload = list()
168
  fname="prompt_" + game_id + "_" + user_id + ".txt"
169
- start_data = openfile(fname)
170
  file_data = open_file(f"{file_path}/image_prompt_leo.txt").replace("<<PROMPT_FOR_IMG>>", user_input)
171
  file_data = start_data + " " + file_data
172
  leo_input_msg = call_gpt(file_data)
 
166
  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?', '')
167
  payload = list()
168
  fname="prompt_" + game_id + "_" + user_id + ".txt"
169
+ start_data = open_file(fname)
170
  file_data = open_file(f"{file_path}/image_prompt_leo.txt").replace("<<PROMPT_FOR_IMG>>", user_input)
171
  file_data = start_data + " " + file_data
172
  leo_input_msg = call_gpt(file_data)