Richard commited on
Commit
c9cf37d
·
1 Parent(s): 0e17055

Allow hugging face to iframe

Browse files
Files changed (1) hide show
  1. main.py +3 -1
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