Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
| 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."""
|