dwmk commited on
Commit
235ad1c
ยท
verified ยท
1 Parent(s): 1792489

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -103,7 +103,7 @@ except Exception as e:
103
  df = pd.DataFrame({'content': ['test'], 'emoji': ['๐Ÿ‘']})
104
 
105
  # Mappings
106
- sent_map = {'โค๏ธ':'Pos', '๐Ÿ‘':'Pos', '๐Ÿ˜‚':'Pos', '๐Ÿ’ฏ':'Pos', '๐Ÿ˜ข':'Neg', '๐Ÿ˜ญ':'Neg', '๐Ÿ˜ฎ':'Neu'}
107
  intent_map = {'โค๏ธ':'Emotion', '๐Ÿ‘':'Agreement', '๐Ÿ˜‚':'Emotion', '๐Ÿ˜ฎ':'Surprise'}
108
 
109
  # Vectorization
@@ -194,7 +194,7 @@ def get_predictions(text):
194
  # --- 4. UI STYLING & INTERFACE ---
195
 
196
  def get_avatar_url(seed):
197
- return f"https://api.dicebear.com/7.x/bottts/svg?seed={seed}&backgroundColor=transparent"
198
 
199
  CSS = """
200
  .chat-window { font-family: 'Segoe UI', sans-serif; }
@@ -324,9 +324,9 @@ def chat_logic(message, history):
324
 
325
  # --- 5. LAUNCH APP ---
326
 
327
- with gr.Blocks(css=CSS, title="Social Benchmarks AI") as demo:
328
- gr.Markdown("### ๐Ÿค– Multi-Model Social Benchmarks")
329
- gr.Markdown("Type a message to see how 6 different AI architectures interpret it.")
330
 
331
  chatbot = gr.Chatbot(
332
  elem_id="chat-window",
 
103
  df = pd.DataFrame({'content': ['test'], 'emoji': ['๐Ÿ‘']})
104
 
105
  # Mappings
106
+ sent_map = {'โค๏ธ':'Positive', '๐Ÿ‘':'Positive', '๐Ÿ˜‚':'Positive', '๐Ÿ’ฏ':'Positive', '๐Ÿ˜ข':'Negative', '๐Ÿ˜ญ':'Negative', '๐Ÿ˜ฎ':'Neutral'}
107
  intent_map = {'โค๏ธ':'Emotion', '๐Ÿ‘':'Agreement', '๐Ÿ˜‚':'Emotion', '๐Ÿ˜ฎ':'Surprise'}
108
 
109
  # Vectorization
 
194
  # --- 4. UI STYLING & INTERFACE ---
195
 
196
  def get_avatar_url(seed):
197
+ return f"https://api.dicebear.com/7.x/bottts/svg?seed={seed}&backgroundColor=transparent&size=128"
198
 
199
  CSS = """
200
  .chat-window { font-family: 'Segoe UI', sans-serif; }
 
324
 
325
  # --- 5. LAUNCH APP ---
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",