AI Researcher changes
This commit is contained in:
70
alwrity.py
70
alwrity.py
@@ -4,76 +4,6 @@ import json
|
||||
import base64
|
||||
import logging
|
||||
from datetime import datetime
|
||||
<<<<<<< HEAD
|
||||
import os
|
||||
import json
|
||||
import base64
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
# Set page config - must be the first Streamlit command
|
||||
st.set_page_config(
|
||||
page_title="AI Writer - Content Generation Platform",
|
||||
page_icon="✍️",
|
||||
layout="wide",
|
||||
initial_sidebar_state="expanded", # Changed from collapsed to expanded
|
||||
menu_items={
|
||||
'Get Help': None,
|
||||
'Report a bug': None,
|
||||
'About': None
|
||||
}
|
||||
)
|
||||
|
||||
# Load and apply custom CSS
|
||||
with open('lib/workspace/alwrity_ui_styling.css', 'r') as f:
|
||||
css = f.read()
|
||||
|
||||
st.markdown(f"""
|
||||
<style>
|
||||
/* Hide Streamlit header elements */
|
||||
header {{
|
||||
visibility: hidden !important;
|
||||
height: 0px !important;
|
||||
}}
|
||||
|
||||
/* Hide Deploy button */
|
||||
.stDeployButton {{
|
||||
display: none !important;
|
||||
}}
|
||||
|
||||
/* Adjust top padding since we removed the header */
|
||||
.main .block-container {{
|
||||
padding-top: 1rem !important;
|
||||
}}
|
||||
|
||||
{css}
|
||||
</style>
|
||||
""", unsafe_allow_html=True)
|
||||
|
||||
import os
|
||||
import json
|
||||
import base64
|
||||
import logging
|
||||
import logging
|
||||
from datetime import datetime
|
||||
import os
|
||||
import json
|
||||
import base64
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||
handlers=[
|
||||
logging.StreamHandler(), # Output to console
|
||||
#logging.FileHandler('alwrity.log') # Output to file
|
||||
]
|
||||
)
|
||||
logger = logging.getLogger(__name__)
|
||||
=======
|
||||
>>>>>>> b48a3b1 (Google Search Grounded results, Content Calendar Ideator, Competitor Analysis, and Keyword Researcher)
|
||||
|
||||
# Set page config - must be the first Streamlit command
|
||||
st.set_page_config(
|
||||
|
||||
Reference in New Issue
Block a user