Spaces:
Sleeping
Sleeping
Update chat.py
Browse files
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)
|