ysharma HF staff commited on
Commit
34c2304
1 Parent(s): 6c67a86
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,7 +59,7 @@ def lang_model_response(prompt):
59
  print(f"*****Inside lang_model_response - Prompt is :{prompt}")
60
  p = """Reply to this text in one short sentence.
61
  text: """
62
- prompt = p + prompt + "\n" #+ "Response: "
63
 
64
  if len(prompt) == 0:
65
  prompt = """Can you help me please?"""
@@ -70,7 +70,7 @@ def lang_model_response(prompt):
70
  "top_p": 0.90, #0.90 default
71
  "max_new_tokens": 64,
72
  "temperature": 1.1, #1.1 default
73
- "return_full_text": True,
74
  "do_sample": True,
75
  },
76
  "options":
 
59
  print(f"*****Inside lang_model_response - Prompt is :{prompt}")
60
  p = """Reply to this text in one short sentence.
61
  text: """
62
+ #prompt = p + prompt + "\n" #+ "Response: "
63
 
64
  if len(prompt) == 0:
65
  prompt = """Can you help me please?"""
 
70
  "top_p": 0.90, #0.90 default
71
  "max_new_tokens": 64,
72
  "temperature": 1.1, #1.1 default
73
+ "return_full_text": False,
74
  "do_sample": True,
75
  },
76
  "options":