Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,6 @@ def chat_with_pdf(content):
|
|
| 7 |
api_key = os.getenv('CHATPDFKEY')
|
| 8 |
if not api_key:
|
| 9 |
return "API key (CHATPDFKEY) not set in environment variables."
|
| 10 |
-
|
| 11 |
headers = {
|
| 12 |
'x-api-key': api_key,
|
| 13 |
"Content-Type": "application/json",
|
|
|
|
| 7 |
api_key = os.getenv('CHATPDFKEY')
|
| 8 |
if not api_key:
|
| 9 |
return "API key (CHATPDFKEY) not set in environment variables."
|
|
|
|
| 10 |
headers = {
|
| 11 |
'x-api-key': api_key,
|
| 12 |
"Content-Type": "application/json",
|