Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,10 @@ from nltk.tokenize import word_tokenize, sent_tokenize
|
|
| 8 |
nltk.download('punkt')
|
| 9 |
|
| 10 |
# Set the environmental variable for the GROQ API key
|
| 11 |
-
# Use your actual API key directly for testing (replace with environment variable in production)
|
| 12 |
GROQ_API_KEY = "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" # Provided API key
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
GROQ_API_URL = 'https://api.groq.com/v1/
|
| 16 |
|
| 17 |
# Function to interact with the GROQ API
|
| 18 |
def check_grammar(text):
|
|
|
|
| 8 |
nltk.download('punkt')
|
| 9 |
|
| 10 |
# Set the environmental variable for the GROQ API key
|
|
|
|
| 11 |
GROQ_API_KEY = "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" # Provided API key
|
| 12 |
|
| 13 |
+
# Corrected endpoint URL (replace with actual URL from the documentation)
|
| 14 |
+
GROQ_API_URL = 'https://api.groq.com/v1/checktext' # Replace with actual endpoint if different
|
| 15 |
|
| 16 |
# Function to interact with the GROQ API
|
| 17 |
def check_grammar(text):
|