DrDomedag commited on
Commit
58599b4
1 Parent(s): b3cfc9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -101,7 +101,7 @@ class WordGame:
101
  return "That didn't quite hit the mark. Try again!"
102
 
103
  def update_status(self, message=""):
104
- demo.title = f'Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}'
105
 
106
  def analyse_output(self, message, history):
107
  print("---message---")
@@ -157,7 +157,7 @@ def respond(
157
  print("response:")
158
  print(response)
159
  output_check_result = game.check_output_for_word(response)
160
- response = response + " " + input_check_result + " " + output_check_result
161
  return response
162
 
163
 
 
101
  return "That didn't quite hit the mark. Try again!"
102
 
103
  def update_status(self, message=""):
104
+ return f'Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}'
105
 
106
  def analyse_output(self, message, history):
107
  print("---message---")
 
157
  print("response:")
158
  print(response)
159
  output_check_result = game.check_output_for_word(response)
160
+ response = response + " \n\n---\n\n" + input_check_result + " " + output_check_result + "\n" + game.update_status()
161
  return response
162
 
163