Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def shap(txt, tok_level):
|
|
18 |
#tokens = nltk
|
19 |
with torch.no_grad():
|
20 |
y_pred = model(txt)
|
21 |
-
return
|
22 |
|
23 |
demo = gr.Interface(fn=shap,
|
24 |
inputs=[
|
|
|
18 |
#tokens = nltk
|
19 |
with torch.no_grad():
|
20 |
y_pred = model(txt)
|
21 |
+
return txt
|
22 |
|
23 |
demo = gr.Interface(fn=shap,
|
24 |
inputs=[
|