g8a9 commited on
Commit
c354f71
1 Parent(s): 39c3042
Files changed (2) hide show
  1. corpus.py +10 -7
  2. single.py +5 -3
corpus.py CHANGED
@@ -56,14 +56,17 @@ def body():
56
  help="Class label you want to explain.",
57
  )
58
 
59
- samples_string = st.text_input(
60
- "List of samples",
61
- "11,6,42",
62
- help="List of indices in the dataset, comma-separated.",
63
- )
64
- samples = list(map(int, samples_string.split(",")))
 
 
 
65
 
66
- compute = st.button("Run")
67
 
68
  if compute and model_name:
69
 
 
56
  help="Class label you want to explain.",
57
  )
58
 
59
+ cols = st.columns([5, 1])
60
+ with cols[0]:
61
+ samples_string = st.text_input(
62
+ "List of samples",
63
+ "11,6,42",
64
+ help="List of indices in the dataset, comma-separated.",
65
+ )
66
+ with cols[1]:
67
+ compute = st.button("Run")
68
 
69
+ samples = list(map(int, samples_string.split(",")))
70
 
71
  if compute and model_name:
72
 
single.py CHANGED
@@ -60,9 +60,11 @@ def body():
60
  help="Class label you want to explain.",
61
  )
62
 
63
- text = st.text_input("Text", "I love your style!")
64
-
65
- compute = st.button("Run")
 
 
66
 
67
  if compute and model_name:
68
 
 
60
  help="Class label you want to explain.",
61
  )
62
 
63
+ cols = st.columns([5, 1])
64
+ with cols[0]:
65
+ text = st.text_input("Text", "I love your style!")
66
+ with cols[1]:
67
+ compute = st.button("Run")
68
 
69
  if compute and model_name:
70