adnaan05 KhaqanNasir commited on
Commit
73a61c1
·
verified ·
1 Parent(s): 0baf4d0

Update src/app.py (#13)

Browse files

- Update src/app.py (b58899fcd7efd93e83f09b268654d202d388400e)


Co-authored-by: Muhammad Khaqan Nasir <[email protected]>

Files changed (1) hide show
  1. src/app.py +7 -7
src/app.py CHANGED
@@ -240,6 +240,12 @@
240
  # if __name__ == "__main__":
241
  # main()
242
 
 
 
 
 
 
 
243
  import streamlit as st
244
  import torch
245
  import pandas as pd
@@ -277,13 +283,7 @@ from src.models.hybrid_model import HybridFakeNewsDetector
277
  from src.config.config import *
278
  from src.data.preprocessor import TextPreprocessor
279
 
280
- # Set page config
281
- st.set_page_config(
282
- page_title="TrueCheck - AI Fake News Detector",
283
- page_icon="🔍",
284
- layout="wide",
285
- initial_sidebar_state="collapsed"
286
- )
287
 
288
  # Custom CSS for modern styling
289
  st.markdown("""
 
240
  # if __name__ == "__main__":
241
  # main()
242
 
243
+
244
+
245
+
246
+
247
+
248
+
249
  import streamlit as st
250
  import torch
251
  import pandas as pd
 
283
  from src.config.config import *
284
  from src.data.preprocessor import TextPreprocessor
285
 
286
+ # REMOVED st.set_page_config() - This should only be called once in the main entry point
 
 
 
 
 
 
287
 
288
  # Custom CSS for modern styling
289
  st.markdown("""