Penality commited on
Commit
9212ca3
·
verified ·
1 Parent(s): 676e9e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,9 +3,12 @@ import pdfplumber
3
  import together
4
  import re
5
  import unicodedata
 
 
 
6
 
7
  # Set up Together.AI API Key (Replace with your actual key)
8
- together.api_key = "8052996318422f1b9470840fc6ebc94e80676391f07e71cc15951b08bb430240"
9
 
10
  def clean_text(text):
11
  """Cleans extracted text for better processing by the model."""
 
3
  import together
4
  import re
5
  import unicodedata
6
+ from dotenv import load_dotenv
7
+
8
+ load_dotenv()
9
 
10
  # Set up Together.AI API Key (Replace with your actual key)
11
+ together.api_key = os.getenv("secretKey")
12
 
13
  def clean_text(text):
14
  """Cleans extracted text for better processing by the model."""