Docfile commited on
Commit
cd66d08
·
1 Parent(s): f348397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -31,9 +31,18 @@ def greet(name):
31
  )
32
 
33
  res = llm(f"""
34
- contexte:{c}.
35
-
36
- Question:{name}""")
 
 
 
 
 
 
 
 
 
37
  print(res)
38
  return res
39
 
 
31
  )
32
 
33
  res = llm(f"""
34
+ Use the following pieces of context to answer the query at the end.
35
+ If you don't know the answer, just say that you don't know, don't try to make up an answer.
36
+
37
+ ${c}
38
+
39
+ Query: ${name}
40
+
41
+ Helpful Answer:
42
+ system_prompt: |
43
+ Act as William Shakespeare. Answer the following questions in the style of William Shakespeare.
44
+
45
+ """)
46
  print(res)
47
  return res
48