Spaces:
Runtime error
Runtime error
| 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, | |
| ) |