Update app.py
Browse files
app.py
CHANGED
|
@@ -103,8 +103,8 @@ class WordGame:
|
|
| 103 |
return "That didn't quite hit the mark. Try again!"
|
| 104 |
|
| 105 |
def update_status(self, message=""):
|
| 106 |
-
gr.ChatInterface.update(title=f'The Game - Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}')
|
| 107 |
-
|
| 108 |
return f'Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}'
|
| 109 |
|
| 110 |
|
|
|
|
| 103 |
return "That didn't quite hit the mark. Try again!"
|
| 104 |
|
| 105 |
def update_status(self, message=""):
|
| 106 |
+
#gr.ChatInterface.update(title=f'The Game - Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}')
|
| 107 |
+
self.chatbot.ChatInterface.update(title=f'The Game - Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}')
|
| 108 |
return f'Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}'
|
| 109 |
|
| 110 |
|