ysharma HF staff commited on
Commit
0895195
1 Parent(s): 536eb1b
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,10 +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 = """Reply to this text in one short sentence.
61
- text: """
62
- #prompt = p + prompt + "\n" #+ "Response: "
63
- prompt = prompt + "\n"
64
 
65
  if len(prompt) == 0:
66
  prompt = """Can you help me please?"""
 
57
  # LLM - Bloom Response
58
  def lang_model_response(prompt):
59
  print(f"*****Inside lang_model_response - Prompt is :{prompt}")
60
+ p = """If the following text is a question reply with an answer, else complete the sentence.
61
+ this is the text: """
62
+ prompt = p + prompt #+ "\n" #+ "Response: "
63
+ #prompt = prompt + "\n"
64
 
65
  if len(prompt) == 0:
66
  prompt = """Can you help me please?"""