ww commited on
Commit
102d868
·
1 Parent(s): ec82c9e

sys_message

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -32,7 +32,8 @@ def generate_response(
32
  print(system_prompt)
33
  print('=====================')
34
 
35
- system_prompt = "i'm a friendly robot"
 
36
  print('=====================')
37
  print(prompt)
38
  print(history)
@@ -41,7 +42,7 @@ def generate_response(
41
  print(temperature)
42
  print(top_p)
43
  print('=====================')
44
- formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
45
  stream = client.text_generation(formatted_prompt,stream=True, max_new_tokens=256)
46
  output = ""
47
  for response in stream:
 
32
  print(system_prompt)
33
  print('=====================')
34
 
35
+ #system_prompt = "i'm a friendly robot"
36
+ sys_message = "i'm a friendly robot"
37
  print('=====================')
38
  print(prompt)
39
  print(history)
 
42
  print(temperature)
43
  print(top_p)
44
  print('=====================')
45
+ formatted_prompt = format_prompt(f"{sys_message}, {prompt}", history)
46
  stream = client.text_generation(formatted_prompt,stream=True, max_new_tokens=256)
47
  output = ""
48
  for response in stream: