Spaces:
Running
Running
Update src/app.py
Browse files- 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 |
-
#
|
| 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("""
|