Jaane commited on
Commit
8262e10
1 Parent(s): d9cc0b3

removed API

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -15,7 +15,9 @@ tf.get_logger().setLevel('ERROR')
15
  warnings.filterwarnings("ignore")
16
  logging.set_verbosity_error()
17
 
18
- GROQ_API_KEY = "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"
 
 
19
 
20
  def segment_into_sentences_groq(passage):
21
  headers = {
 
15
  warnings.filterwarnings("ignore")
16
  logging.set_verbosity_error()
17
 
18
+ GROQ_API_KEY = os.getenv("GROQ_API_KEY")
19
+ if not GROQ_API_KEY:
20
+ raise ValueError("GROQ_API_KEY is not set. Please add it to the Secrets in your Hugging Face Space settings.")
21
 
22
  def segment_into_sentences_groq(passage):
23
  headers = {