Commit
·
deeeb78
1
Parent(s):
426e07f
fix: getting api key
Browse files
app.py
CHANGED
@@ -267,9 +267,10 @@ def setup_openai_key() -> None:
|
|
267 |
with open("api.key", "r") as f:
|
268 |
os.environ["OPENAI_API_KEY"] = f.read().strip()
|
269 |
except FileNotFoundError:
|
270 |
-
|
271 |
-
|
272 |
-
|
|
|
273 |
|
274 |
|
275 |
def get_initial_analysis(transcript_processor: TranscriptProcessor) -> str:
|
|
|
267 |
with open("api.key", "r") as f:
|
268 |
os.environ["OPENAI_API_KEY"] = f.read().strip()
|
269 |
except FileNotFoundError:
|
270 |
+
print("Using ENV variable")
|
271 |
+
# raise FileNotFoundError(
|
272 |
+
# "api.key file not found. Please create it with your OpenAI API key."
|
273 |
+
# )
|
274 |
|
275 |
|
276 |
def get_initial_analysis(transcript_processor: TranscriptProcessor) -> str:
|