aino813 commited on
Commit
ff83be3
Β·
1 Parent(s): 22ccde5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def func(text):
25
 
26
  label = "ネガティブ" if scores.item()==0 else "ポジティブ"
27
 
28
- return label,text
29
 
30
- app = gr.Interface(fn=func, inputs="text", outputs=["label","text"], title="γƒ“γ‚Έγƒγ‚Ήζ–‡ζ›ΈοΌγƒγ‚¬γƒγ‚Έεˆ†ζž", description=descriptions)
31
  app.launch()
 
25
 
26
  label = "ネガティブ" if scores.item()==0 else "ポジティブ"
27
 
28
+ return label
29
 
30
+ app = gr.Interface(fn=func, inputs="text", outputs="label", title="γƒ“γ‚Έγƒγ‚Ήζ–‡ζ›ΈοΌγƒγ‚¬γƒγ‚Έεˆ†ζž", description=descriptions)
31
  app.launch()