laxsvips commited on
Commit
4251885
·
1 Parent(s): bc5c9e1

Updated output format

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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
- response = {'role': 'assistant', 'content': result}
7
- return response
8
 
9
  def play_game(game_id, user_id, user_input):
10
- gpt_output = chat.start_game(game_id, user_id, user_input)
11
- response = {'role': 'assistant', 'content': gpt_output}
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"}