NicolasGaudemet
commited on
Commit
•
2931650
1
Parent(s):
1d086a8
Update writing_assistant_app.py
Browse files- writing_assistant_app.py +2 -2
writing_assistant_app.py
CHANGED
@@ -9,8 +9,8 @@ def writing_assistant(debut, suite, instructions):
|
|
9 |
# Construction de la requête
|
10 |
|
11 |
with open('instructions.txt', 'r') as fichier:
|
12 |
-
|
13 |
-
|
14 |
|
15 |
prompt = f"DEBUT = '{debut}'\n SUITE = '{suite}' \n INSTRUCTIONS = {instructions}"
|
16 |
|
|
|
9 |
# Construction de la requête
|
10 |
|
11 |
with open('instructions.txt', 'r') as fichier:
|
12 |
+
# Lecture du contenu du fichier
|
13 |
+
instructions = fichier.read() + "\n" + instructions
|
14 |
|
15 |
prompt = f"DEBUT = '{debut}'\n SUITE = '{suite}' \n INSTRUCTIONS = {instructions}"
|
16 |
|