einargizz commited on
Commit
bb60e60
·
verified ·
1 Parent(s): e13a30c

Update app.py

Browse files

Intrinsically setting ssr_mode=False. This is an attempt to fix problems with phone users unable to interact with buttons on the app.

Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -3,8 +3,16 @@ import gradio as gr
3
 
4
  PRIVATE_SPACE = "Hugrun/Hugrun_Virtual_CBT_Therapist_Research_Prototype"
5
 
6
- demo = gr.load(PRIVATE_SPACE, src="spaces", token=os.environ["HF_TOKEN"])
 
 
 
 
 
7
  demo.queue()
8
 
9
  if __name__ == "__main__":
10
- demo.launch()
 
 
 
 
3
 
4
  PRIVATE_SPACE = "Hugrun/Hugrun_Virtual_CBT_Therapist_Research_Prototype"
5
 
6
+ demo = gr.load(
7
+ PRIVATE_SPACE,
8
+ src="spaces",
9
+ token=os.environ["HF_TOKEN"],
10
+ )
11
+
12
  demo.queue()
13
 
14
  if __name__ == "__main__":
15
+ demo.launch(
16
+ ssr_mode=False,
17
+ show_error=True,
18
+ )