CCockrum commited on
Commit
60f36c6
·
verified ·
1 Parent(s): cca620f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -71,7 +71,8 @@ def generate_follow_up(user_text):
71
  prompt_text = (
72
  f"Based on the user's question: '{user_text}', generate two concise, friendly follow-up questions "
73
  "that invite further discussion. For example, one might be 'Would you like to know more about the six types of quarks?' "
74
- "and another might be 'Would you like to explore another aspect of quantum physics?' Do not include extra commentary."
 
75
  )
76
  hf = get_llm_hf_inference(max_new_tokens=80, temperature=0.9)
77
  output = hf.invoke(input=prompt_text).strip()
 
71
  prompt_text = (
72
  f"Based on the user's question: '{user_text}', generate two concise, friendly follow-up questions "
73
  "that invite further discussion. For example, one might be 'Would you like to know more about the six types of quarks?' "
74
+ "and another might be 'Would you like to explore another aspect of quantum physics?' Do not include extra commentary ."
75
+ "Answer exclusively in English, and do not include extra commentary."
76
  )
77
  hf = get_llm_hf_inference(max_new_tokens=80, temperature=0.9)
78
  output = hf.invoke(input=prompt_text).strip()