Icarus011 commited on
Commit
9dac916
·
verified ·
1 Parent(s): 6cd6d92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -64,7 +64,8 @@ st.sidebar.button('Clear Chat History', on_click=clear_chat_history)
64
 
65
  # Function for generating LLaMA2 response
66
  def generate_llama_index_response(prompt_input):
67
- return greet2(prompt_input)
 
68
 
69
  # User-provided prompt
70
  if prompt := st.chat_input():
 
64
 
65
  # Function for generating LLaMA2 response
66
  def generate_llama_index_response(prompt_input):
67
+ full_prompt = f"作为医疗知识问答助手,我将根据我的知识库回答你的问题:{prompt_input}"
68
+ return greet2(full_prompt)
69
 
70
  # User-provided prompt
71
  if prompt := st.chat_input():