moriire commited on
Commit
8f1eded
1 Parent(s): cefc820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -76,10 +76,12 @@ def health():
76
  @app.post("/chat/")
77
  async def chat(chatm:ChatModel):
78
  try:
 
79
  messages=[
80
  {"role": "assistant", "content": chatm.system},
81
  **chatm.question
82
  ]
 
83
  st = time()
84
 
85
  messages.append({"role": "user", "content": chatm.question})
 
76
  @app.post("/chat/")
77
  async def chat(chatm:ChatModel):
78
  try:
79
+ """
80
  messages=[
81
  {"role": "assistant", "content": chatm.system},
82
  **chatm.question
83
  ]
84
+ """
85
  st = time()
86
 
87
  messages.append({"role": "user", "content": chatm.question})