Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,6 @@ from PIL import Image
|
|
| 9 |
import pdf2image
|
| 10 |
import google.generativeai as genai
|
| 11 |
|
| 12 |
-
poppler_path = "poppler/Library/bin"
|
| 13 |
-
|
| 14 |
-
# Set the Poppler path
|
| 15 |
-
pdf2image.configuration(poppler_path=poppler_path)
|
| 16 |
-
|
| 17 |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 18 |
|
| 19 |
def get_gemini_response(input,pdf_cotent,prompt):
|
|
|
|
| 9 |
import pdf2image
|
| 10 |
import google.generativeai as genai
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 13 |
|
| 14 |
def get_gemini_response(input,pdf_cotent,prompt):
|