Update app.py
Browse files
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})
|