AhmadMustafa commited on
Commit
deeeb78
·
1 Parent(s): 426e07f

fix: getting api key

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- raise FileNotFoundError(
271
- "api.key file not found. Please create it with your OpenAI API key."
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: