Spaces:
Runtime error
Runtime error
layout
Browse files
corpus.py
CHANGED
@@ -56,14 +56,17 @@ def body():
|
|
56 |
help="Class label you want to explain.",
|
57 |
)
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
65 |
|
66 |
-
|
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 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
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 |
|