sqfoo commited on
Commit
83ff28c
·
verified ·
1 Parent(s): 820029c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,7 +94,7 @@ def play_turn(human_response, loc, player, cur, custom_token, request: gr.Reques
94
  gr.update(), gr.update(),
95
  loc, player, cur
96
  )
97
- print(custom_token)
98
  chosen_token = custom_token.strip() if custom_token and custom_token.strip() else (request.token if request else None)
99
 
100
  if not chosen_token:
@@ -132,7 +132,7 @@ def play_turn(human_response, loc, player, cur, custom_token, request: gr.Reques
132
  return
133
 
134
  processed_response = extract_after_final_answer(response.choices[0].message.content)
135
-
136
  # 2. Update Game State / Location
137
  loc = cur._next(processed_response, player)
138
  attribute = player.get_attribute()
 
94
  gr.update(), gr.update(),
95
  loc, player, cur
96
  )
97
+
98
  chosen_token = custom_token.strip() if custom_token and custom_token.strip() else (request.token if request else None)
99
 
100
  if not chosen_token:
 
132
  return
133
 
134
  processed_response = extract_after_final_answer(response.choices[0].message.content)
135
+ print(processed_response)
136
  # 2. Update Game State / Location
137
  loc = cur._next(processed_response, player)
138
  attribute = player.get_attribute()