snsynth commited on
Commit
5d472af
·
1 Parent(s): 052ce31

add security policy

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -2
  2. app.py +3 -1
Dockerfile CHANGED
@@ -22,6 +22,4 @@ USER mesop
22
  COPY . /finance-rag-chatbot-group39
23
  WORKDIR /finance-rag-chatbot-group39
24
 
25
- # Final command: run the mesop script
26
- # CMD ["mesop", "rag_app/app.py", "--port", "8080"]
27
  CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:me"]
 
22
  COPY . /finance-rag-chatbot-group39
23
  WORKDIR /finance-rag-chatbot-group39
24
 
 
 
25
  CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:me"]
app.py CHANGED
@@ -16,7 +16,9 @@ _STYLE_APP_CONTAINER = me.Style(
16
  )
17
 
18
 
19
- @me.page()
 
 
20
  def app():
21
  state = me.state(State)
22
  with me.box(style=_STYLE_APP_CONTAINER):
 
16
  )
17
 
18
 
19
+ @me.page(security_policy=me.SecurityPolicy(
20
+ allowed_iframe_parents=["https://huggingface.co"]
21
+ ))
22
  def app():
23
  state = me.state(State)
24
  with me.box(style=_STYLE_APP_CONTAINER):