dwmk commited on
Commit
24be874
·
verified ·
1 Parent(s): 235ad1c

live stable release

Browse files
Files changed (1) hide show
  1. app.py +3 -13
app.py CHANGED
@@ -233,15 +233,6 @@ CSS = """
233
  }
234
  .model-card:hover { transform: translateY(-3px); }
235
 
236
- .card-avatar {
237
- width: 45px;
238
- height: 45px;
239
- border-radius: 50%;
240
- margin-bottom: 8px;
241
- border: 2px solid #f0f2f5;
242
- background: #f9f9f9;
243
- }
244
-
245
  .card-name {
246
  font-size: 11px;
247
  font-weight: 700;
@@ -309,7 +300,6 @@ def chat_logic(message, history):
309
 
310
  cards_html += f"""
311
  <div class="model-card">
312
- <img src="{get_avatar_url(name)}" class="card-avatar">
313
  <div class="card-name">{name}</div>
314
  <div class="card-emoji">{p['emoji']}</div>
315
  <div class="card-badge {sent_cls}">{p['sentiment']}</div>
@@ -326,7 +316,7 @@ def chat_logic(message, history):
326
 
327
  with gr.Blocks(css=CSS, title="SentiChat") as demo:
328
  gr.Markdown("### 🤖 Message Analysis")
329
- gr.Markdown("Type a message to see how different AI/ML architectures interpret it.")
330
 
331
  chatbot = gr.Chatbot(
332
  elem_id="chat-window",
@@ -337,12 +327,12 @@ with gr.Blocks(css=CSS, title="SentiChat") as demo:
337
 
338
  with gr.Row():
339
  txt = gr.Textbox(
340
- placeholder="Type a social message (e.g., 'I cant believe you did that!')",
341
  scale=4,
342
  show_label=False,
343
  container=False
344
  )
345
- btn = gr.Button("Analyze", variant="primary", scale=1)
346
 
347
  # Event bindings
348
  txt.submit(chat_logic, [txt, chatbot], [txt, chatbot])
 
233
  }
234
  .model-card:hover { transform: translateY(-3px); }
235
 
 
 
 
 
 
 
 
 
 
236
  .card-name {
237
  font-size: 11px;
238
  font-weight: 700;
 
300
 
301
  cards_html += f"""
302
  <div class="model-card">
 
303
  <div class="card-name">{name}</div>
304
  <div class="card-emoji">{p['emoji']}</div>
305
  <div class="card-badge {sent_cls}">{p['sentiment']}</div>
 
316
 
317
  with gr.Blocks(css=CSS, title="SentiChat") as demo:
318
  gr.Markdown("### 🤖 Message Analysis")
319
+ gr.Markdown("Type a message to see how different AI/ML architectures interpret it. They were trained on [this dataset](https://www.kaggle.com/datasets/dewanmukto/social-messages-and-emoji-reactions).")
320
 
321
  chatbot = gr.Chatbot(
322
  elem_id="chat-window",
 
327
 
328
  with gr.Row():
329
  txt = gr.Textbox(
330
+ placeholder="Type a message (e.g., 'I cant believe you did that!')",
331
  scale=4,
332
  show_label=False,
333
  container=False
334
  )
335
+ btn = gr.Button("Send ▶ Analyze", variant="primary", scale=1)
336
 
337
  # Event bindings
338
  txt.submit(chat_logic, [txt, chatbot], [txt, chatbot])