AbhayVG commited on
Commit
cc052ee
Β·
verified Β·
1 Parent(s): c739af5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -306,7 +306,7 @@ def upload_feedback(feedback, error, output, last_prompt, code, status):
306
  folder_name = f"feedback_{timestamp_str}_{random_id}"
307
 
308
  # Create markdown feedback file
309
- markdown_content = f"""# VayuBuddy Feedback Report
310
 
311
  ## Session Information
312
  - **Timestamp**: {feedback_data['timestamp']}
@@ -377,7 +377,7 @@ def upload_feedback(feedback, error, output, last_prompt, code, status):
377
  return False
378
 
379
  # Beautiful header
380
- st.markdown("<h1 class='main-title'>🌬️ VayuBuddy</h1>", unsafe_allow_html=True)
381
 
382
  st.markdown("""
383
  <div class='subtitle'>
@@ -497,9 +497,9 @@ with st.sidebar:
497
  elif response.get("role") == "assistant":
498
  content = response.get('content', '')
499
  if isinstance(content, str) and len(content) > 50:
500
- st.markdown(f"**VayuBuddy:** {content[:50]}...")
501
  else:
502
- st.markdown(f"**VayuBuddy:** {str(content)[:50]}...")
503
  st.markdown("---")
504
 
505
  # Load quick prompts
@@ -571,7 +571,7 @@ def show_custom_response(response):
571
  elif role == "assistant":
572
  st.markdown(f"""
573
  <div class='assistant-message'>
574
- <div class='assistant-info'>πŸ€– VayuBuddy</div>
575
  {content if isinstance(content, str) else str(content)}
576
  </div>
577
  """, unsafe_allow_html=True)
@@ -596,7 +596,7 @@ def show_processing_indicator(model_name, question):
596
  """Show processing indicator"""
597
  st.markdown(f"""
598
  <div class='processing-indicator'>
599
- <div class='assistant-info'>πŸ€– VayuBuddy β€’ Processing with {model_name}</div>
600
  <strong>Question:</strong> {question}<br>
601
  <em>πŸ”„ Generating response...</em>
602
  </div>
@@ -750,8 +750,8 @@ with st.sidebar:
750
  st.markdown("---")
751
  st.markdown("""
752
  <div class='contact-section'>
753
- <h4>πŸ“„ Paper on VayuBuddy</h4>
754
- <p>Learn more about VayuBuddy in our <a href='https://arxiv.org/abs/2411.12760' target='_blank'>Research Paper</a>.</p>
755
  </div>
756
  """, unsafe_allow_html=True)
757
 
@@ -768,7 +768,7 @@ with st.sidebar:
768
  st.markdown("""
769
  <div style='text-align: center; margin-top: 3rem; padding: 2rem; background: rgba(255,255,255,0.1); border-radius: 15px;'>
770
  <h3>🌍 Together for Cleaner Air</h3>
771
- <p>VayuBuddy - Empowering environmental awareness through AI</p>
772
  <small>Β© 2024 IIT Gandhinagar Sustainability Lab</small>
773
  </div>
774
  """, unsafe_allow_html=True)
 
306
  folder_name = f"feedback_{timestamp_str}_{random_id}"
307
 
308
  # Create markdown feedback file
309
+ markdown_content = f"""# VayuChat Feedback Report
310
 
311
  ## Session Information
312
  - **Timestamp**: {feedback_data['timestamp']}
 
377
  return False
378
 
379
  # Beautiful header
380
+ st.markdown("<h1 class='main-title'>🌬️ VayuChat</h1>", unsafe_allow_html=True)
381
 
382
  st.markdown("""
383
  <div class='subtitle'>
 
497
  elif response.get("role") == "assistant":
498
  content = response.get('content', '')
499
  if isinstance(content, str) and len(content) > 50:
500
+ st.markdown(f"**VayuChat:** {content[:50]}...")
501
  else:
502
+ st.markdown(f"**VayuChat:** {str(content)[:50]}...")
503
  st.markdown("---")
504
 
505
  # Load quick prompts
 
571
  elif role == "assistant":
572
  st.markdown(f"""
573
  <div class='assistant-message'>
574
+ <div class='assistant-info'>πŸ€– VayuChat</div>
575
  {content if isinstance(content, str) else str(content)}
576
  </div>
577
  """, unsafe_allow_html=True)
 
596
  """Show processing indicator"""
597
  st.markdown(f"""
598
  <div class='processing-indicator'>
599
+ <div class='assistant-info'>πŸ€– VayuChat β€’ Processing with {model_name}</div>
600
  <strong>Question:</strong> {question}<br>
601
  <em>πŸ”„ Generating response...</em>
602
  </div>
 
750
  st.markdown("---")
751
  st.markdown("""
752
  <div class='contact-section'>
753
+ <h4>πŸ“„ Paper on VayuChat</h4>
754
+ <p>Learn more about VayuChat in our <a href='https://arxiv.org/abs/2411.12760' target='_blank'>Research Paper</a>.</p>
755
  </div>
756
  """, unsafe_allow_html=True)
757
 
 
768
  st.markdown("""
769
  <div style='text-align: center; margin-top: 3rem; padding: 2rem; background: rgba(255,255,255,0.1); border-radius: 15px;'>
770
  <h3>🌍 Together for Cleaner Air</h3>
771
+ <p>VayuChat - Empowering environmental awareness through AI</p>
772
  <small>Β© 2024 IIT Gandhinagar Sustainability Lab</small>
773
  </div>
774
  """, unsafe_allow_html=True)