Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def correct_words(text):
|
|
16 |
def generate_response(message):
|
17 |
global history
|
18 |
for _ in range(2): # Assuming you want two responses, adjust as needed
|
19 |
-
response = llm.generate(message
|
20 |
time.sleep(2)
|
21 |
corrected_response = correct_words(response)
|
22 |
history.append(corrected_response)
|
|
|
16 |
def generate_response(message):
|
17 |
global history
|
18 |
for _ in range(2): # Assuming you want two responses, adjust as needed
|
19 |
+
response = llm.generate(message)
|
20 |
time.sleep(2)
|
21 |
corrected_response = correct_words(response)
|
22 |
history.append(corrected_response)
|