Tonic commited on
Commit
23e856e
·
1 Parent(s): fa57d02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -386,8 +386,10 @@ class ChatBot:
386
  response_text = tokenizer.decode(response[0], skip_special_tokens=True)
387
  return response_text
388
 
 
 
389
  def process_summary_with_stablemed(summary):
390
- system_prompt = "You are a clinical education consultant ready to do just about anything for your students. You are discussing training cases with students at TonicUniversity. Assess and describe the proper options to your students in minute detail. Propose a course of action for them to base their recommendations on based on your description. Always provide a complete answer. Exclude any other commentary:"
391
  response_text = bot.predict(summary, system_prompt)
392
  return response_text
393
 
 
386
  response_text = tokenizer.decode(response[0], skip_special_tokens=True)
387
  return response_text
388
 
389
+ bot = ChatBot()
390
+
391
  def process_summary_with_stablemed(summary):
392
+ system_prompt = "You are a medical instructor . Assess and describe the proper options to your students in minute detail. Propose a course of action for them to base their recommendations on based on your description."
393
  response_text = bot.predict(summary, system_prompt)
394
  return response_text
395