Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ from langchain_core.output_parsers import StrOutputParser
|
|
11 |
from langchain_core.runnables import RunnablePassthrough
|
12 |
from langchain_together import TogetherEmbeddings
|
13 |
|
14 |
-
os.environ["TOGETHER_API_KEY"] = "
|
|
|
15 |
|
16 |
#load
|
17 |
loader = TextLoader("Resume_data.txt")
|
@@ -75,7 +76,7 @@ def response_generator():
|
|
75 |
yield m
|
76 |
time.sleep(0.01)
|
77 |
else:
|
78 |
-
yield "How can i help you?"
|
79 |
|
80 |
###########################################
|
81 |
# Display assistant response in chat message container
|
|
|
11 |
from langchain_core.runnables import RunnablePassthrough
|
12 |
from langchain_together import TogetherEmbeddings
|
13 |
|
14 |
+
os.environ["TOGETHER_API_KEY"] = os.getenv("API_TOKEN")
|
15 |
+
# os.environ["TOGETHER_API_KEY"] = "bafbab854ae828c3b90f675c45c8263e9404d278b5694909ea0855f437b9d1f3"
|
16 |
|
17 |
#load
|
18 |
loader = TextLoader("Resume_data.txt")
|
|
|
76 |
yield m
|
77 |
time.sleep(0.01)
|
78 |
else:
|
79 |
+
yield "Hi, How can i help you?"
|
80 |
|
81 |
###########################################
|
82 |
# Display assistant response in chat message container
|