Ali Abuharb commited on
Commit
9c1a3e1
·
verified ·
1 Parent(s): 11fb9b2

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +15 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import gradio as gr
3
+
4
+ hf_key = os.environ.get('HF_TOKEN', None)
5
+ username = os.environ.get('USERNAME', None)
6
+ password = os.environ.get('PASSWORD', None)
7
+
8
+ app = gr.load("DatuMind/SaudiLawsMind_Private", hf_token = hf_key, src = "spaces")
9
+
10
+ app.queue().launch(
11
+ auth=(username,password),
12
+ auth_message='خبير الأنظمة السعودية - SaudiLawsMind',
13
+ enable_monitoring=True,
14
+ show_api=False,
15
+ )
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio