Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def get_vastu_advice(question, image_path=None, pdf_path=None):
|
|
50 |
|
51 |
# Add PDF file if provided
|
52 |
if pdf_path:
|
53 |
-
files['
|
54 |
|
55 |
try:
|
56 |
response = requests.post(API_URL, files=files, data=data)
|
|
|
50 |
|
51 |
# Add PDF file if provided
|
52 |
if pdf_path:
|
53 |
+
files['image_path'] = open(image_path, 'rb')
|
54 |
|
55 |
try:
|
56 |
response = requests.post(API_URL, files=files, data=data)
|