Spaces:
Sleeping
Sleeping
Updated output format
Browse files
app.py
CHANGED
|
@@ -3,13 +3,11 @@ import gradio
|
|
| 3 |
|
| 4 |
def initialize_game(game_id, user_id, user_input):
|
| 5 |
result = chat.initialize_game(game_id, user_id, user_input)
|
| 6 |
-
|
| 7 |
-
return response
|
| 8 |
|
| 9 |
def play_game(game_id, user_id, user_input):
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
return response
|
| 13 |
|
| 14 |
def health_check(name):
|
| 15 |
response = {"role": "assistant", "content": "Hello " + name + "! The site is up"}
|
|
|
|
| 3 |
|
| 4 |
def initialize_game(game_id, user_id, user_input):
|
| 5 |
result = chat.initialize_game(game_id, user_id, user_input)
|
| 6 |
+
return result
|
|
|
|
| 7 |
|
| 8 |
def play_game(game_id, user_id, user_input):
|
| 9 |
+
result = chat.start_game(game_id, user_id, user_input)
|
| 10 |
+
return result
|
|
|
|
| 11 |
|
| 12 |
def health_check(name):
|
| 13 |
response = {"role": "assistant", "content": "Hello " + name + "! The site is up"}
|