thethinkmachine commited on
Commit
0f8a47d
Β·
verified Β·
1 Parent(s): 8f051ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -8,6 +8,8 @@ HF_TOKEN = os.getenv("HF_TOKEN")
8
 
9
  MODEL_LIST = [
10
  "thethinkmachine/immune-resin",
 
 
11
  ]
12
 
13
  pipeline_cache = {}
@@ -63,7 +65,7 @@ def classify(text, model_name, chart_type, threshold):
63
  return df, fig
64
 
65
 
66
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
67
  gr.Markdown("# Ekman Emotions Playground πŸ€–πŸ‘ΎπŸ¦œ")
68
  gr.Markdown("### Why let humans play with your emotions when a robot can do it for you for free? ...Cheaper than therapy, 100% less effective!")
69
 
@@ -76,7 +78,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
76
  chart_dropdown = gr.Dropdown(
77
  choices=["Radar Chart", "Bar Chart"],
78
  label="Chart Type",
79
- value="Radar Chart"
80
  )
81
  threshold_slider = gr.Slider(
82
  0, 1,
@@ -101,13 +103,17 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
101
 
102
  gr.Examples(
103
  examples=[
104
- "Sorry for not blocking you faster",
 
 
 
 
105
  "hurr durr I like using reddit, and anyone who doesn't agree with me is a retard",
 
106
  "Considering I haven't eaten or drunk anything in about twenty hours, my head hurts.",
107
- "I only saw her once and I'm head over heels!"
108
  ],
109
  inputs=[text_input]
110
  )
111
 
112
  if __name__ == "__main__":
113
- demo.launch()
 
8
 
9
  MODEL_LIST = [
10
  "thethinkmachine/immune-resin",
11
+ "thethinkmachine/bright-avocado",
12
+ "thethinkmachine/kickass-supercluster",
13
  ]
14
 
15
  pipeline_cache = {}
 
65
  return df, fig
66
 
67
 
68
+ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
69
  gr.Markdown("# Ekman Emotions Playground πŸ€–πŸ‘ΎπŸ¦œ")
70
  gr.Markdown("### Why let humans play with your emotions when a robot can do it for you for free? ...Cheaper than therapy, 100% less effective!")
71
 
 
78
  chart_dropdown = gr.Dropdown(
79
  choices=["Radar Chart", "Bar Chart"],
80
  label="Chart Type",
81
+ value="Bar Chart"
82
  )
83
  threshold_slider = gr.Slider(
84
  0, 1,
 
103
 
104
  gr.Examples(
105
  examples=[
106
+ "I only saw her once and I'm head over heels!",
107
+ "Pay you for what, just standing there?!",
108
+ "Dumbass Broncos fans circa December 2015.",
109
+ "It's great that you're a recovering addict, that's cool. Have you ever tried DMT?",
110
+ "I'm scared to even ask my mom ,I might get yelled at 😟",
111
  "hurr durr I like using reddit, and anyone who doesn't agree with me is a retard",
112
+ "They're really pushing me into this... once I go, there's no coming back you know?",
113
  "Considering I haven't eaten or drunk anything in about twenty hours, my head hurts.",
 
114
  ],
115
  inputs=[text_input]
116
  )
117
 
118
  if __name__ == "__main__":
119
+ demo.launch()