Bofandra commited on
Commit
e9d50ae
·
verified ·
1 Parent(s): fefb1bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -16,6 +16,7 @@ def respond(
16
  ):
17
  messages = [{"role": "system", "content": "You are a moslem bot that always give reference to quran and hadith!"}]
18
 
 
19
  for val in history:
20
  if val[0]:
21
  messages.append({"role": "user", "content": val[0]})
@@ -54,11 +55,6 @@ demo = gr.ChatInterface(
54
  label="Top-p (nucleus sampling)",
55
  ),
56
  ],
57
- examples=[
58
- ["Why men created?",[],512,0.7,0.95],
59
- ["How is life after death?",[],512,0.7,0.95],
60
- ["Please tell me about superstition!",[],512,0.7,0.95]
61
- ],
62
  )
63
 
64
 
 
16
  ):
17
  messages = [{"role": "system", "content": "You are a moslem bot that always give reference to quran and hadith!"}]
18
 
19
+ print(history)
20
  for val in history:
21
  if val[0]:
22
  messages.append({"role": "user", "content": val[0]})
 
55
  label="Top-p (nucleus sampling)",
56
  ),
57
  ],
 
 
 
 
 
58
  )
59
 
60