IAMTFRMZA commited on
Commit
aca7a5d
·
verified ·
1 Parent(s): 7d3fd8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -14
app.py CHANGED
@@ -21,13 +21,7 @@ client = OpenAI(api_key=openai_key)
21
 
22
  VOICE_OPTIONS = {
23
  "Jenny (US, Female)": "en-US-JennyNeural",
24
- "Aria (US, Female)": "en-US-AriaNeural",
25
- "Ryan (UK, Male)": "en-GB-RyanNeural",
26
- "Natasha (AU, Female)": "en-AU-NatashaNeural",
27
- "William (AU, Male)": "en-AU-WilliamNeural",
28
- "Libby (UK, Female)": "en-GB-LibbyNeural",
29
- "Leah (SA, Female)": "en-ZA-LeahNeural",
30
- "Luke (SA, Male)": "en-ZA-LukeNeural"
31
  }
32
 
33
  st.set_page_config(page_title="LOR Technologies AI Assistant", layout="wide")
@@ -69,8 +63,8 @@ st.markdown("""
69
  display: flex;
70
  flex-direction: column;
71
  justify-content: flex-end;
72
- height: 75vh;
73
- margin-bottom: 6em;
74
  }
75
  .chat-history-wrapper {
76
  flex-grow: 1;
@@ -84,14 +78,31 @@ st.markdown("""
84
  margin: 0.5em 0;
85
  }
86
  .chat-input-bar {
87
- position: fixed; bottom: 0; width: 100%; z-index: 100;
88
- background: #191b22; padding: 0.6em 1em; border-top: 1px solid #22232c;
89
- display: flex; align-items: center; gap: 0.5em; flex-wrap: nowrap;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
91
- .chat-input-bar input { width: 100%; font-size: 1.1em; }
92
  .clear-chat-btn {
93
  flex: 0 0 auto;
94
- background: none; border: none; font-size: 1.4em; color: #999; cursor: pointer;
 
 
 
 
95
  }
96
  </style>
97
  """, unsafe_allow_html=True)
 
21
 
22
  VOICE_OPTIONS = {
23
  "Jenny (US, Female)": "en-US-JennyNeural",
24
+ "Leah (SA, Female)": "en-ZA-LeahNeural"
 
 
 
 
 
 
25
  }
26
 
27
  st.set_page_config(page_title="LOR Technologies AI Assistant", layout="wide")
 
63
  display: flex;
64
  flex-direction: column;
65
  justify-content: flex-end;
66
+ height: calc(100vh - 220px);
67
+ margin-bottom: 5.5em;
68
  }
69
  .chat-history-wrapper {
70
  flex-grow: 1;
 
78
  margin: 0.5em 0;
79
  }
80
  .chat-input-bar {
81
+ position: fixed;
82
+ bottom: 0;
83
+ left: 0;
84
+ right: 0;
85
+ z-index: 100;
86
+ background: #191b22;
87
+ padding: 0.6em 1em;
88
+ border-top: 1px solid #22232c;
89
+ display: flex;
90
+ align-items: center;
91
+ gap: 0.5em;
92
+ flex-wrap: nowrap;
93
+ }
94
+ .chat-input-bar input {
95
+ flex-grow: 1;
96
+ font-size: 1.1em;
97
+ min-width: 10em;
98
  }
 
99
  .clear-chat-btn {
100
  flex: 0 0 auto;
101
+ background: none;
102
+ border: none;
103
+ font-size: 1.4em;
104
+ color: #999;
105
+ cursor: pointer;
106
  }
107
  </style>
108
  """, unsafe_allow_html=True)