Engr-Saeed commited on
Commit
1b2afbc
1 Parent(s): b240c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -32,12 +32,9 @@ def read_document(file):
32
  return f"Error processing file: {file.name} - {str(e)}"
33
 
34
  # Pass your API key directly when initializing the Groq client
35
-
36
  api_key = "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" # Replace with your actual API key
37
  client = Groq(api_key=api_key)
38
 
39
- client = Groq()
40
-
41
  # Function to validate and truncate content to prevent API errors
42
  def validate_content(text):
43
  # Basic validation to remove unwanted characters
 
32
  return f"Error processing file: {file.name} - {str(e)}"
33
 
34
  # Pass your API key directly when initializing the Groq client
 
35
  api_key = "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" # Replace with your actual API key
36
  client = Groq(api_key=api_key)
37
 
 
 
38
  # Function to validate and truncate content to prevent API errors
39
  def validate_content(text):
40
  # Basic validation to remove unwanted characters