FredOru commited on
Commit
11bbc55
·
1 Parent(s): d05dc9f

auth corrected

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import base64
3
  import prompts
@@ -6,7 +7,6 @@ from dotenv import load_dotenv
6
 
7
  load_dotenv()
8
  client = OpenAI()
9
-
10
  PROMPT = prompts.SINGLE_QCM_PROMPT
11
 
12
 
@@ -55,5 +55,5 @@ iface = gr.Interface(
55
  inputs=gr.Image(type="filepath"),
56
  outputs=gr.JSON(),
57
  )
58
- authorized_users = [("test", "édifice")]
59
  iface.launch(auth=authorized_users)
 
1
+ import os
2
  import gradio as gr
3
  import base64
4
  import prompts
 
7
 
8
  load_dotenv()
9
  client = OpenAI()
 
10
  PROMPT = prompts.SINGLE_QCM_PROMPT
11
 
12
 
 
55
  inputs=gr.Image(type="filepath"),
56
  outputs=gr.JSON(),
57
  )
58
+ authorized_users = [("test", os.environ["TEST_PASSWORD"])]
59
  iface.launch(auth=authorized_users)