Thanush commited on
Commit
6e15dcc
·
1 Parent(s): 031a3f5
Files changed (1) hide show
  1. medbot/handlers.py +2 -0
medbot/handlers.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from .model import ModelManager
2
  from .memory import MedicalMemoryManager
3
  from .prompts import CONSULTATION_PROMPT, MEDICINE_PROMPT
@@ -17,6 +18,7 @@ def build_me_llama_prompt(system_prompt, history, user_input):
17
  prompt += f"{user_input} [/INST] "
18
  return prompt
19
 
 
20
  def respond(message, chat_history):
21
  global conversation_turns
22
  conversation_turns += 1
 
1
+ import spaces
2
  from .model import ModelManager
3
  from .memory import MedicalMemoryManager
4
  from .prompts import CONSULTATION_PROMPT, MEDICINE_PROMPT
 
18
  prompt += f"{user_input} [/INST] "
19
  return prompt
20
 
21
+ @spaces.GPU
22
  def respond(message, chat_history):
23
  global conversation_turns
24
  conversation_turns += 1