wop commited on
Commit
54322bd
·
verified ·
1 Parent(s): 1530768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -16,9 +16,6 @@ def format_prompt(message, history):
16
  prompt += f"[INST] {message} [/INST]"
17
  return prompt
18
 
19
- STARTER_HISTORY = [
20
- ("hello there BibleAI", "Greetings! I am BibleAI, here to answer your questions about Christianity.")
21
- ]
22
 
23
  def generate(prompt, history, temperature=0.9, max_new_tokens=2048, top_p=0.95, repetition_penalty=1.0):
24
  temperature = float(temperature)
@@ -94,7 +91,7 @@ customCSS = """
94
 
95
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
96
  gr.ChatInterface(
97
- generate(history=STARTER_HISTORY),
98
  additional_inputs=additional_inputs,
99
  )
100
 
 
16
  prompt += f"[INST] {message} [/INST]"
17
  return prompt
18
 
 
 
 
19
 
20
  def generate(prompt, history, temperature=0.9, max_new_tokens=2048, top_p=0.95, repetition_penalty=1.0):
21
  temperature = float(temperature)
 
91
 
92
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
93
  gr.ChatInterface(
94
+ generate,
95
  additional_inputs=additional_inputs,
96
  )
97