Spaces:
Running
Running
Update app.py
Browse filesIntrinsically setting ssr_mode=False. This is an attempt to fix problems with phone users unable to interact with buttons on the app.
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
)
|