KvrParaskevi commited on
Commit
65f35eb
·
verified ·
1 Parent(s): 725a1f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,8 +39,8 @@ def chat_interface(inputs):
39
 
40
  #result = llm_chain({"input": query, "history": chat_history_tuples})
41
  result = llm_chain.predict(input = inputs)
42
- formated_result = result.split('\n')[-1]
43
- return formated_result
44
 
45
  llm = load_pipeline()
46
  chat_history = []
 
39
 
40
  #result = llm_chain({"input": query, "history": chat_history_tuples})
41
  result = llm_chain.predict(input = inputs)
42
+ formated_result = result.split('AI:')[-1]
43
+ return formated_result.strip()
44
 
45
  llm = load_pipeline()
46
  chat_history = []