Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,7 @@ local_css("style.css")
|
|
65 |
# Set the API endpoint and the API key
|
66 |
API_ENDPOINT = "https://api2.woorank.com/reviews"
|
67 |
API_KEY = os.environ.get("woorank_api_key")
|
|
|
68 |
|
69 |
if not API_KEY:
|
70 |
st.error("The API keys are not properly configured. Check your environment variables!")
|
@@ -84,7 +85,7 @@ else:
|
|
84 |
ADD AS LEARN MORE LINKS FOR THE FIRST TEXT BLOCK LINKS TO structured data https://wordlift.io/blog/en/entity/structured-data/ and schema.org https://wordlift.io/blog/en/entity/schema-org/ TO PROVIDE ADDITIONAL HELP./n/n
|
85 |
YOU ARE WRITING THE REPORT IN HTML USING A TEMPLATE.'''}]
|
86 |
|
87 |
-
|
88 |
if not openai_api_key:
|
89 |
st.error("OPENAI_API_KEY not found in environment variables.")
|
90 |
return None
|
|
|
65 |
# Set the API endpoint and the API key
|
66 |
API_ENDPOINT = "https://api2.woorank.com/reviews"
|
67 |
API_KEY = os.environ.get("woorank_api_key")
|
68 |
+
openai_api_key = os.environ.get("openai_api_key")
|
69 |
|
70 |
if not API_KEY:
|
71 |
st.error("The API keys are not properly configured. Check your environment variables!")
|
|
|
85 |
ADD AS LEARN MORE LINKS FOR THE FIRST TEXT BLOCK LINKS TO structured data https://wordlift.io/blog/en/entity/structured-data/ and schema.org https://wordlift.io/blog/en/entity/schema-org/ TO PROVIDE ADDITIONAL HELP./n/n
|
86 |
YOU ARE WRITING THE REPORT IN HTML USING A TEMPLATE.'''}]
|
87 |
|
88 |
+
|
89 |
if not openai_api_key:
|
90 |
st.error("OPENAI_API_KEY not found in environment variables.")
|
91 |
return None
|