Spaces:
Build error
Build error
kk
Browse files
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":
|
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":
|