Spaces:
Running
Running
Richard
commited on
Commit
·
c9cf37d
1
Parent(s):
0e17055
Allow hugging face to iframe
Browse files
main.py
CHANGED
@@ -71,7 +71,9 @@ class State:
|
|
71 |
mode: str = "Prompt"
|
72 |
|
73 |
|
74 |
-
@me.page(
|
|
|
|
|
75 |
def app():
|
76 |
state = me.state(State)
|
77 |
|
|
|
71 |
mode: str = "Prompt"
|
72 |
|
73 |
|
74 |
+
@me.page(
|
75 |
+
security_policy=me.SecurityPolicy(allowed_iframe_parents=["https://huggingface.co"]),
|
76 |
+
)
|
77 |
def app():
|
78 |
state = me.state(State)
|
79 |
|