ONEROCKS commited on
Commit
2b652f9
·
verified ·
1 Parent(s): 7454a9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -181,22 +181,7 @@ def create_chatbot():
181
  ) as demo:
182
 
183
  chatbot = gr.Chatbot(type='messages')
184
- state = gr.State([])
185
-
186
- gr.HTML("""
187
- <link href="https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap" rel="stylesheet">
188
- <style>
189
- #neon-text {
190
- color: #b266ff; /* Light purple */
191
- font-size: 10px;
192
- font-family: 'Tilt Neon', sans-serif;
193
- text-align: center;
194
- letter-spacing: 10px;
195
- font-weight: 300; /* Slim weight */
196
- }
197
- </style>
198
- <div id="neon-text">one_ai</div>
199
- """)
200
 
201
  with gr.Row():
202
  role = gr.Dropdown(
@@ -246,7 +231,22 @@ def create_chatbot():
246
  file_btn.click(lambda: gr.File(visible=True), None, file_input)
247
  send_btn.click(respond, [msg, state, role, audio_input, file_input], [chatbot, state])
248
  audio_input.stop_recording(transcribe_and_respond, [audio_input, state, role], [msg, chatbot, state])
249
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  gr.HTML("""
251
  <link href="https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap" rel="stylesheet">
252
  <style>
 
181
  ) as demo:
182
 
183
  chatbot = gr.Chatbot(type='messages')
184
+ state = gr.State([])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
  with gr.Row():
187
  role = gr.Dropdown(
 
231
  file_btn.click(lambda: gr.File(visible=True), None, file_input)
232
  send_btn.click(respond, [msg, state, role, audio_input, file_input], [chatbot, state])
233
  audio_input.stop_recording(transcribe_and_respond, [audio_input, state, role], [msg, chatbot, state])
234
+
235
+ gr.HTML("""
236
+ <link href="https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap" rel="stylesheet">
237
+ <style>
238
+ #neon-text {
239
+ color: #b266ff; /* Light purple */
240
+ font-size: 10px;
241
+ font-family: 'Tilt Neon', sans-serif;
242
+ text-align: center;
243
+ letter-spacing: 10px;
244
+ font-weight: 300; /* Slim weight */
245
+ }
246
+ </style>
247
+ <div id="neon-text">one_ai</div>
248
+ """)
249
+
250
  gr.HTML("""
251
  <link href="https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap" rel="stylesheet">
252
  <style>