Feri007 commited on
Commit
f92867a
·
verified ·
1 Parent(s): 9e1f614

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import os
3
 
 
4
  CUSTOM_CSS = """
5
  @import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
6
  body, .gradio-container {
@@ -44,12 +45,15 @@ theme = gr.themes.Soft(
44
  )
45
 
46
 
47
- with gr.Blocks(theme=theme, css=CUSTOM_CSS) as demo:
48
- gr.load(
49
- "spaces/Feri007/GIapp-private",
50
- hf_token=os.environ.get("HF_TOKEN")
51
- )
52
 
53
- if __name__ == "__main__":
54
- demo.launch()
55
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import os
3
 
4
+
5
  CUSTOM_CSS = """
6
  @import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
7
  body, .gradio-container {
 
45
  )
46
 
47
 
48
+ demo = gr.load(
49
+ "spaces/Feri007/GIapp-private",
50
+ hf_token=os.environ.get("HF_TOKEN")
51
+ )
 
52
 
 
 
53
 
54
+ demo.css = CUSTOM_CSS
55
+ demo.theme = theme
56
+
57
+
58
+ if __name__ == "__main__":
59
+ demo.launch()