Spaces:
Build error
Build error
ko
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 = """Instruction: Reply to this Statement in one sentence.
|
61 |
Statement: """
|
62 |
-
prompt = p + prompt + "\n"
|
63 |
|
64 |
if len(prompt) == 0:
|
65 |
prompt = """Can you help me please?"""
|
@@ -83,7 +83,7 @@ def lang_model_response(prompt):
|
|
83 |
print(f"output is : {output}")
|
84 |
output_tmp = output[0]['generated_text']
|
85 |
print(f"output_tmp is: {output_tmp}")
|
86 |
-
solution = output_tmp.split("
|
87 |
print(f"Final response after splits is: {solution}")
|
88 |
return solution
|
89 |
|
|
|
59 |
print(f"*****Inside lang_model_response - Prompt is :{prompt}")
|
60 |
p = """Instruction: Reply to this Statement in one sentence.
|
61 |
Statement: """
|
62 |
+
prompt = p + prompt + "\n" #+ "Response: "
|
63 |
|
64 |
if len(prompt) == 0:
|
65 |
prompt = """Can you help me please?"""
|
|
|
83 |
print(f"output is : {output}")
|
84 |
output_tmp = output[0]['generated_text']
|
85 |
print(f"output_tmp is: {output_tmp}")
|
86 |
+
solution = output_tmp.split("\n")[2]
|
87 |
print(f"Final response after splits is: {solution}")
|
88 |
return solution
|
89 |
|