Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +0 -8
chain_app.py
CHANGED
|
@@ -1955,14 +1955,6 @@ async def on_chat_start():
|
|
| 1955 |
@cl.on_message
|
| 1956 |
async def main(message: cl.Message):
|
| 1957 |
chat_profile = cl.user_session.get("chat_profile")
|
| 1958 |
-
res = await cl.AskActionMessage(
|
| 1959 |
-
content="Is that message correct and accurate ? check it and choose an option:",
|
| 1960 |
-
actions=[
|
| 1961 |
-
cl.Action(name="Yes", value="Yes", label="✅ Yes"),
|
| 1962 |
-
cl.Action(name="No", value="No", label="❌ No"),
|
| 1963 |
-
],
|
| 1964 |
-
).send()
|
| 1965 |
-
if res and res.get("value") == "Yes":
|
| 1966 |
if chat_profile == 'neural-brain-AI':
|
| 1967 |
completion = openai_client.chat.completions.create(
|
| 1968 |
model="ft:gpt-3.5-turbo-1106:nb:aria1:9UWDrLJK",
|
|
|
|
| 1955 |
@cl.on_message
|
| 1956 |
async def main(message: cl.Message):
|
| 1957 |
chat_profile = cl.user_session.get("chat_profile")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1958 |
if chat_profile == 'neural-brain-AI':
|
| 1959 |
completion = openai_client.chat.completions.create(
|
| 1960 |
model="ft:gpt-3.5-turbo-1106:nb:aria1:9UWDrLJK",
|