Spaces:
Build error
Build error
kk
Browse files
app.py
CHANGED
@@ -57,9 +57,10 @@ def whisper_stt(audio):
|
|
57 |
# LLM - Bloom Response
|
58 |
def lang_model_response(prompt):
|
59 |
print(f"*****Inside lang_model_response - Prompt is :{prompt}")
|
60 |
-
p = """
|
61 |
-
|
62 |
-
|
|
|
63 |
#prompt = prompt + "\n"
|
64 |
|
65 |
if len(prompt) == 0:
|
@@ -89,7 +90,7 @@ def lang_model_response(prompt):
|
|
89 |
#elif '.' in prompt:
|
90 |
# solution = output_tmp.split(".")[1]
|
91 |
#else:
|
92 |
-
solution = output_tmp.split("
|
93 |
|
94 |
print(f"Final response after splits is: {solution}")
|
95 |
return solution
|
|
|
57 |
# LLM - Bloom Response
|
58 |
def lang_model_response(prompt):
|
59 |
print(f"*****Inside lang_model_response - Prompt is :{prompt}")
|
60 |
+
p = """Question: How are you doing today?
|
61 |
+
Answer: I am doing good, thanks.
|
62 |
+
Question: """
|
63 |
+
prompt = p + prompt + "\n" + "Answer: "
|
64 |
#prompt = prompt + "\n"
|
65 |
|
66 |
if len(prompt) == 0:
|
|
|
90 |
#elif '.' in prompt:
|
91 |
# solution = output_tmp.split(".")[1]
|
92 |
#else:
|
93 |
+
solution = output_tmp.split("Answer:")[2]
|
94 |
|
95 |
print(f"Final response after splits is: {solution}")
|
96 |
return solution
|