Spaces:
Sleeping
Sleeping
pierreguillou
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,10 @@ from pdf2image import convert_from_path
|
|
12 |
import google.generativeai as genai
|
13 |
import json
|
14 |
|
|
|
|
|
|
|
|
|
15 |
# Helper Functions
|
16 |
def convert_to_rgb(image_path):
|
17 |
img = Image.open(image_path)
|
|
|
12 |
import google.generativeai as genai
|
13 |
import json
|
14 |
|
15 |
+
def authenticate(username, password):
|
16 |
+
return (username == os.environ.get("HF_USERNAME") and
|
17 |
+
password == os.environ.get("HF_PASSWORD"))
|
18 |
+
|
19 |
# Helper Functions
|
20 |
def convert_to_rgb(image_path):
|
21 |
img = Image.open(image_path)
|