Spaces:
Runtime error
Runtime error
revert layout
Browse files
corpus.py
CHANGED
|
@@ -56,15 +56,12 @@ def body():
|
|
| 56 |
help="Class label you want to explain.",
|
| 57 |
)
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
)
|
| 66 |
-
with cols[1]:
|
| 67 |
-
compute = st.button("Run")
|
| 68 |
|
| 69 |
samples = list(map(int, samples_string.split(",")))
|
| 70 |
|
|
|
|
| 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 |
+
compute = st.button("Run")
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
samples = list(map(int, samples_string.split(",")))
|
| 67 |
|
single.py
CHANGED
|
@@ -60,11 +60,8 @@ def body():
|
|
| 60 |
help="Class label you want to explain.",
|
| 61 |
)
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 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 |
|
|
|
|
| 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:
|
| 67 |
|