g8a9 commited on
Commit
ca954b1
1 Parent(s): 01d1f11

Update single.py

Browse files
Files changed (1) hide show
  1. single.py +2 -1
single.py CHANGED
@@ -4,6 +4,7 @@ from ferret import Benchmark
4
  from torch.nn.functional import softmax
5
 
6
  DEFAULT_MODEL = "cardiffnlp/twitter-xlm-roberta-base-sentiment"
 
7
 
8
 
9
  @st.cache()
@@ -60,7 +61,7 @@ def body():
60
  help="Class label you want to explain.",
61
  )
62
 
63
- text = st.text_input("Text", "I love your style!")
64
  compute = st.button("Run")
65
 
66
  if compute and model_name:
 
4
  from torch.nn.functional import softmax
5
 
6
  DEFAULT_MODEL = "cardiffnlp/twitter-xlm-roberta-base-sentiment"
7
+ DEFAULT_QUERY = "Great movie for a great nap!"
8
 
9
 
10
  @st.cache()
 
61
  help="Class label you want to explain.",
62
  )
63
 
64
+ text = st.text_input("Text", DEFAULT_QUERY)
65
  compute = st.button("Run")
66
 
67
  if compute and model_name: