Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
|
|
89 |
global historylog
|
90 |
for user_message, bot_message in history[0:]:
|
91 |
historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
92 |
-
|
93 |
with open('file.txt','w+') as data:
|
94 |
data.write(str(historylog))
|
95 |
|
@@ -103,7 +103,7 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
|
|
103 |
repo_type="space"
|
104 |
)
|
105 |
|
106 |
-
print(
|
107 |
return PROMPT
|
108 |
|
109 |
|
|
|
89 |
global historylog
|
90 |
for user_message, bot_message in history[0:]:
|
91 |
historylog += f"<s>[INST] {user_message} [/INST] {bot_message} </s>"
|
92 |
+
print(historylog)
|
93 |
with open('file.txt','w+') as data:
|
94 |
data.write(str(historylog))
|
95 |
|
|
|
103 |
repo_type="space"
|
104 |
)
|
105 |
|
106 |
+
print("upload section passed")
|
107 |
return PROMPT
|
108 |
|
109 |
|