Danialebrat commited on
Commit
b274159
Β·
1 Parent(s): 2c69464

Fixing bugs by changing streamlit config - HF issues

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,12 +4,14 @@ import pandas as pd
4
  import streamlit as st
5
  from snowflake.snowpark import Session
6
  from bs4 import BeautifulSoup
7
-
8
  from Messaging_system.Permes import Permes
9
  from Messaging_system.context_validator import Validator
10
  from dotenv import load_dotenv
11
  load_dotenv()
12
 
 
 
 
13
  # ──────────────────────────────────────────────────────────────────────────────
14
  # Helpers
15
  # ──────────────────────────────────────────────────────────────────────────────
 
4
  import streamlit as st
5
  from snowflake.snowpark import Session
6
  from bs4 import BeautifulSoup
 
7
  from Messaging_system.Permes import Permes
8
  from Messaging_system.context_validator import Validator
9
  from dotenv import load_dotenv
10
  load_dotenv()
11
 
12
+ st.set_option("server.enableXsrfProtection", False)
13
+ st.set_option("server.enableCORS", False)
14
+
15
  # ──────────────────────────────────────────────────────────────────────────────
16
  # Helpers
17
  # ──────────────────────────────────────────────────────────────────────────────