Upload app.py

#3
by TYehan - opened
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -128,9 +128,9 @@ def create_agent_graph(owl_file_path: str) -> StateGraph:
128
  return workflow.compile()
129
 
130
  def main():
131
- st.set_page_config(page_title="Drug Interaction Analysis System", page_icon="πŸ’Š", layout="wide")
132
 
133
- st.markdown("<h1 style='text-align: center;'>Drug Interaction Analysis System</h1>", unsafe_allow_html=True)
134
 
135
  st.markdown("<p style='text-align: center; color: #c9f9fa;'>This application uses a combination of ontology-based reasoning and language models to analyze drug interactions.</p>", unsafe_allow_html=True)
136
  st.markdown("<p style='text-align: center; color: #faffb7;'>Analyze potential interactions between different drugs</p>", unsafe_allow_html=True)
@@ -174,9 +174,9 @@ def main():
174
 
175
  st.markdown("<br>", unsafe_allow_html=True)
176
 
177
- col1, col2, col3 = st.columns([7, 1, 3])
178
 
179
- with col1:
180
 
181
  st.markdown("<h2 style='text-align: left; color: #d46c6c;'>Instructions</h2>", unsafe_allow_html=True)
182
  st.markdown("<p style='text-align: left; color: white;'>1. Enter the drug names separated by commas. <br> 2. Click on the 'Analyze' button. <br> 3. Wait for the analysis to complete. <br> 4. View the results below.</p>", unsafe_allow_html=True)
@@ -211,7 +211,7 @@ def main():
211
  logging.error(f"An error occurred: {str(e)}")
212
  st.error(f"An error occurred: {str(e)}")
213
 
214
- with col3:
215
  st.markdown("<h4 style='text-align: center; color: #5ac5c9;'>Comprehensive Drug Analysis</h4>", unsafe_allow_html=True)
216
  # st.markdown("<img src='https://cdn.dribbble.com/users/228367/screenshots/4603754/chemistryset_dribbble.gif' alt='reaction' width='100%'/>", unsafe_allow_html=True)
217
  st.markdown("<div class='divider'></div>", unsafe_allow_html=True)
 
128
  return workflow.compile()
129
 
130
  def main():
131
+ st.set_page_config(page_title="OntoGraph", page_icon="πŸ’Š", layout="wide")
132
 
133
+ st.markdown("<h1 style='text-align: center;'>OntoGraph - Drug Interaction Analysis System 🧬</h1>", unsafe_allow_html=True)
134
 
135
  st.markdown("<p style='text-align: center; color: #c9f9fa;'>This application uses a combination of ontology-based reasoning and language models to analyze drug interactions.</p>", unsafe_allow_html=True)
136
  st.markdown("<p style='text-align: center; color: #faffb7;'>Analyze potential interactions between different drugs</p>", unsafe_allow_html=True)
 
174
 
175
  st.markdown("<br>", unsafe_allow_html=True)
176
 
177
+ col1, col2, col3 = st.columns([3, 1, 7])
178
 
179
+ with col3:
180
 
181
  st.markdown("<h2 style='text-align: left; color: #d46c6c;'>Instructions</h2>", unsafe_allow_html=True)
182
  st.markdown("<p style='text-align: left; color: white;'>1. Enter the drug names separated by commas. <br> 2. Click on the 'Analyze' button. <br> 3. Wait for the analysis to complete. <br> 4. View the results below.</p>", unsafe_allow_html=True)
 
211
  logging.error(f"An error occurred: {str(e)}")
212
  st.error(f"An error occurred: {str(e)}")
213
 
214
+ with col1:
215
  st.markdown("<h4 style='text-align: center; color: #5ac5c9;'>Comprehensive Drug Analysis</h4>", unsafe_allow_html=True)
216
  # st.markdown("<img src='https://cdn.dribbble.com/users/228367/screenshots/4603754/chemistryset_dribbble.gif' alt='reaction' width='100%'/>", unsafe_allow_html=True)
217
  st.markdown("<div class='divider'></div>", unsafe_allow_html=True)