Pendrokar commited on
Commit
3504435
1 Parent(s): 5ff1a7c

label default value

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -78,22 +78,23 @@ def predict(deepmoji_analysis, emoji_count):
78
 
79
  return return_label
80
 
 
 
81
  input_textbox = gr.Textbox(
82
  label="English Text",
83
  info="ignores: emojis, emoticons, numbers, URLs",
84
  lines=1,
85
- value="This is the shit!",
86
  autofocus=True
87
  )
88
  slider = gr.Slider(1, 64, value=5, step=1, label="Top # Emoji", info="Choose between 1 and 64 top emojis to show")
89
-
90
  gradio_app = gr.Interface(
91
  predict,
92
  [
93
  input_textbox,
94
  slider,
95
  ],
96
- outputs=gr.Label(label="Suitable Emoji"),
97
  examples=[
98
  ["This is shit!", 5],
99
  ["You love hurting me, huh?", 5],
 
78
 
79
  return return_label
80
 
81
+ default_input = "This is the shit!"
82
+
83
  input_textbox = gr.Textbox(
84
  label="English Text",
85
  info="ignores: emojis, emoticons, numbers, URLs",
86
  lines=1,
87
+ value=default_input,
88
  autofocus=True
89
  )
90
  slider = gr.Slider(1, 64, value=5, step=1, label="Top # Emoji", info="Choose between 1 and 64 top emojis to show")
 
91
  gradio_app = gr.Interface(
92
  predict,
93
  [
94
  input_textbox,
95
  slider,
96
  ],
97
+ outputs=gr.Label(label="Suitable Emoji", value={"🫥":1}),
98
  examples=[
99
  ["This is shit!", 5],
100
  ["You love hurting me, huh?", 5],