Spaces:
Runtime error
Runtime error
not not
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ logging.getLogger("metaanalyser").setLevel(level=logging.DEBUG)
|
|
12 |
|
13 |
|
14 |
def run(query: str, chain: SRChain):
|
15 |
-
if "OPENAI_API_KEY" in os.environ or "SERPAPI_API_KEY" not in os.environ:
|
16 |
raise gr.Error(f"Please paste your OpenAI (https://platform.openai.com/) key and SerpAPI (https://serpapi.com/) key to use.")
|
17 |
|
18 |
llm = ChatOpenAI(temperature=0)
|
|
|
12 |
|
13 |
|
14 |
def run(query: str, chain: SRChain):
|
15 |
+
if "OPENAI_API_KEY" not in os.environ or "SERPAPI_API_KEY" not in os.environ:
|
16 |
raise gr.Error(f"Please paste your OpenAI (https://platform.openai.com/) key and SerpAPI (https://serpapi.com/) key to use.")
|
17 |
|
18 |
llm = ChatOpenAI(temperature=0)
|