Spaces:
Sleeping
Sleeping
michal
commited on
Commit
·
5031f81
1
Parent(s):
647b6b1
hmm
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def get_text(qry):
|
|
94 |
def mysearch(query: str) -> str:
|
95 |
"""Query our own datasets.
|
96 |
"""
|
97 |
-
rslt = get_text(
|
98 |
return '\n'.join(rslt)
|
99 |
|
100 |
# mysearch("who is the best rapper in the world?")
|
@@ -505,7 +505,7 @@ class ChatWrapper:
|
|
505 |
if chain and chain != "":
|
506 |
# Set OpenAI key
|
507 |
import openai
|
508 |
-
openai.api_key = OPENAI_API_KEY
|
509 |
# openai.api_key = api_key
|
510 |
if not monologue:
|
511 |
output, hidden_text = run_chain(
|
|
|
94 |
def mysearch(query: str) -> str:
|
95 |
"""Query our own datasets.
|
96 |
"""
|
97 |
+
rslt = get_text(query)
|
98 |
return '\n'.join(rslt)
|
99 |
|
100 |
# mysearch("who is the best rapper in the world?")
|
|
|
505 |
if chain and chain != "":
|
506 |
# Set OpenAI key
|
507 |
import openai
|
508 |
+
openai.api_key = os.environ["OPENAI_API_KEY"] # OPENAI_API_KEY
|
509 |
# openai.api_key = api_key
|
510 |
if not monologue:
|
511 |
output, hidden_text = run_chain(
|