oceansweep commited on
Commit
1a38c29
1 Parent(s): 7d12dd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1764,7 +1764,7 @@ def summarize_with_cohere(api_key, file_path, model, custom_prompt_arg):
1764
 
1765
  logging.debug(f"cohere: Extracting text from segments file")
1766
  text = extract_text_from_segments(segments)
1767
-
1768
  headers = {
1769
  'accept': 'application/json',
1770
  'content-type': 'application/json',
 
1764
 
1765
  logging.debug(f"cohere: Extracting text from segments file")
1766
  text = extract_text_from_segments(segments)
1767
+ api_key = os.environ.get(COHERE_TOKEN)
1768
  headers = {
1769
  'accept': 'application/json',
1770
  'content-type': 'application/json',