Spaces:
Sleeping
Sleeping
Adding function for Leo
Browse files
app.py
CHANGED
@@ -12,6 +12,10 @@ def play_game(game_id, user_id, user_input):
|
|
12 |
def health_check(name):
|
13 |
response = {"role": "assistant", "content": "Hello " + name + "! The site is up"}
|
14 |
return response
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# @app.route('/load_game', methods=['GET'])
|
17 |
# def load_game():
|
|
|
12 |
def health_check(name):
|
13 |
response = {"role": "assistant", "content": "Hello " + name + "! The site is up"}
|
14 |
return response
|
15 |
+
|
16 |
+
def generate_image_prompt(game_id, user_id, user_input):
|
17 |
+
response = chat.generate_image_prompt(game_id, user_id, user_input)
|
18 |
+
return result
|
19 |
|
20 |
# @app.route('/load_game', methods=['GET'])
|
21 |
# def load_game():
|