Student3331 commited on
Commit
1603cdb
·
verified ·
1 Parent(s): 5776f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- # Replace with the actual endpoint provided by the GROQ documentation
15
- GROQ_API_URL = 'https://api.groq.com/v1/grammar/check' # Replace with actual endpoint if different
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):