Spaces:
Sleeping
Sleeping
removed API
Browse files
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 = "
|
|
|
|
|
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 = {
|