Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,8 @@ import os
|
|
8 |
|
9 |
# Google Sheets settings
|
10 |
SHEET_ID = os.getenv('SHEET_ID') # Replace with your Google Sheet ID
|
|
|
|
|
11 |
USERS_SHEET = 'Users'
|
12 |
PURCHASE_ORDERS_SHEET = 'PurchaseOrders'
|
13 |
|
@@ -274,4 +276,4 @@ with gr.Blocks() as app:
|
|
274 |
approve_order_output = gr.HTML(label="输出")
|
275 |
approve_order_button.click(fn=approve_order_interface, inputs=[username_approve, order_id], outputs=approve_order_output)
|
276 |
|
277 |
-
app.launch(auth=(
|
|
|
8 |
|
9 |
# Google Sheets settings
|
10 |
SHEET_ID = os.getenv('SHEET_ID') # Replace with your Google Sheet ID
|
11 |
+
log = os.getenv('USER')
|
12 |
+
password = os.getenv('PASSWORD')
|
13 |
USERS_SHEET = 'Users'
|
14 |
PURCHASE_ORDERS_SHEET = 'PurchaseOrders'
|
15 |
|
|
|
276 |
approve_order_output = gr.HTML(label="输出")
|
277 |
approve_order_button.click(fn=approve_order_interface, inputs=[username_approve, order_id], outputs=approve_order_output)
|
278 |
|
279 |
+
app.launch(auth=(log, password))
|