Spaces:
Paused
Paused
av4874 commited on
Commit ·
7eea897
1
Parent(s): b0ba51d
Fix: disable SSR mode for HF Spaces compatibility
Browse files
app.py
CHANGED
|
@@ -93,4 +93,4 @@ with gr.Blocks(title="Prompt Injection Detector", theme=gr.themes.Soft()) as dem
|
|
| 93 |
btn.click(fn=detect, inputs=inp, outputs=[label_out, sev_out])
|
| 94 |
inp.submit(fn=detect, inputs=inp, outputs=[label_out, sev_out])
|
| 95 |
|
| 96 |
-
demo.launch()
|
|
|
|
| 93 |
btn.click(fn=detect, inputs=inp, outputs=[label_out, sev_out])
|
| 94 |
inp.submit(fn=detect, inputs=inp, outputs=[label_out, sev_out])
|
| 95 |
|
| 96 |
+
demo.launch(ssr_mode=False)
|