Spaces:
Runtime error
Runtime error
Ryan Sandagon
commited on
Commit
·
0fb371d
1
Parent(s):
db581b1
workaround for unbound var handling
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ examples = [["how are you?"], ["hello"]]
|
|
| 16 |
|
| 17 |
def chat_generate(word):
|
| 18 |
# print(f"**current reply")
|
|
|
|
| 19 |
p = prompt + prev_chat + "\n" + "you: " + word.lower() + "\n" + "me: "
|
| 20 |
print(f"*****Inside chat_generate - Prompt is :{p}")
|
| 21 |
json_ = {"inputs": p,
|
|
|
|
| 16 |
|
| 17 |
def chat_generate(word):
|
| 18 |
# print(f"**current reply")
|
| 19 |
+
global prev_chat
|
| 20 |
p = prompt + prev_chat + "\n" + "you: " + word.lower() + "\n" + "me: "
|
| 21 |
print(f"*****Inside chat_generate - Prompt is :{p}")
|
| 22 |
json_ = {"inputs": p,
|