pierreguillou commited on
Commit
14f301d
·
verified ·
1 Parent(s): d817aff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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)