File size: 755 Bytes
ef40d68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9c1a3e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import gradio as gr

hf_key = os.environ.get('HF_TOKEN', None)
username = os.environ.get('USERNAME', None)
password = os.environ.get('PASSWORD', None)

theme = gr.themes.Soft(
    font=[gr.themes.GoogleFont('Tajawal'), 'Tajawal', 'Tajawal', 'Tajawal'],
    font_mono=[gr.themes.GoogleFont('Tajawal'), 'Tajawal', 'Tajawal', 'Tajawal'],
)

css = """
#title {text-align: center;}
"""

with gr.Blocks(title='SaudiLawsMind', theme=theme, fill_height=True, fill_width=False, css=css) as app:


   gr.load("DatuMind/SaudiLawsMind_Private", hf_token = hf_key, src = "spaces")


app.queue().launch(
   auth=(username,password),
   auth_message='خبير الأنظمة السعودية - SaudiLawsMind',
   enable_monitoring=True,
   show_api=False,
   )