Update main.py
Browse files
main.py
CHANGED
@@ -24,6 +24,8 @@ from chainlit.input_widget import TextInput, Select, Switch, Slider
|
|
24 |
from deep_translator import GoogleTranslator
|
25 |
from IPython.display import display
|
26 |
|
|
|
|
|
27 |
from literalai import LiteralClient
|
28 |
literal_client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY"))
|
29 |
|
@@ -185,11 +187,9 @@ async def on_chat_start():
|
|
185 |
await cl.Message(f"> SURVEYIA").send()
|
186 |
chat_profile = cl.user_session.get("chat_profile")
|
187 |
if chat_profile == "Survey CAA":
|
188 |
-
from surveycaa import surveyCaa
|
189 |
fileSurvey = await surveyCaa()
|
190 |
elif chat_profile == "Survey RH":
|
191 |
-
|
192 |
-
fileSurvey = await surveyCaa()
|
193 |
cl.user_session.set("fileSurvey", fileSurvey)
|
194 |
|
195 |
@cl.on_message
|
|
|
24 |
from deep_translator import GoogleTranslator
|
25 |
from IPython.display import display
|
26 |
|
27 |
+
from surveycaa import surveyCaa, surveyRh
|
28 |
+
|
29 |
from literalai import LiteralClient
|
30 |
literal_client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY"))
|
31 |
|
|
|
187 |
await cl.Message(f"> SURVEYIA").send()
|
188 |
chat_profile = cl.user_session.get("chat_profile")
|
189 |
if chat_profile == "Survey CAA":
|
|
|
190 |
fileSurvey = await surveyCaa()
|
191 |
elif chat_profile == "Survey RH":
|
192 |
+
fileSurvey = await surveyRh()
|
|
|
193 |
cl.user_session.set("fileSurvey", fileSurvey)
|
194 |
|
195 |
@cl.on_message
|