Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,6 @@ import requests
|
|
| 3 |
|
| 4 |
def chat_with_pdf(content):
|
| 5 |
api_key = os.getenv('CHATPDFKEY')
|
| 6 |
-
if not api_key:
|
| 7 |
-
return "API key (CHATPDFKEY) not set in environment variables."
|
| 8 |
|
| 9 |
headers = {
|
| 10 |
"x-api-key": api_key,
|
|
|
|
| 3 |
|
| 4 |
def chat_with_pdf(content):
|
| 5 |
api_key = os.getenv('CHATPDFKEY')
|
|
|
|
|
|
|
| 6 |
|
| 7 |
headers = {
|
| 8 |
"x-api-key": api_key,
|