awacke1 commited on
Commit
1ad51ea
โ€ข
1 Parent(s): d511481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -563,13 +563,18 @@ def main():
563
  claude_response = process_with_claude(user_input)
564
  else: # Both
565
  col1, col2 = st.columns(2)
566
- with col1:
567
- st.subheader("GPT-4o Omni:")
568
- gpt_response = process_with_gpt(user_input)
569
  with col2:
570
  st.subheader("Claude-3.5 Sonnet:")
571
- claude_response = process_with_claude(user_input)
572
-
 
 
 
 
 
 
 
 
573
  # Display Chat History
574
  st.subheader("Chat History ๐Ÿ“œ")
575
  tab1, tab2 = st.tabs(["Claude History", "GPT-4o History"])
 
563
  claude_response = process_with_claude(user_input)
564
  else: # Both
565
  col1, col2 = st.columns(2)
 
 
 
566
  with col2:
567
  st.subheader("Claude-3.5 Sonnet:")
568
+ try:
569
+ claude_response = process_with_claude(user_input)
570
+ except:
571
+ st.write('Claude 3.5 Sonnet out of tokens.')
572
+ with col1:
573
+ st.subheader("GPT-4o Omni:")
574
+ try:
575
+ gpt_response = process_with_gpt(user_input)
576
+ except:
577
+ st.write('GPT 4o out of tokens')
578
  # Display Chat History
579
  st.subheader("Chat History ๐Ÿ“œ")
580
  tab1, tab2 = st.tabs(["Claude History", "GPT-4o History"])