nlmaldonadog commited on
Commit
48edf57
·
verified ·
1 Parent(s): 23939f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def val_label(lab):
12
 
13
  def predict(text):
14
  m3 = classifier3(text)[0]
15
- prediction = f"Model 3: {val_label(m3['label'])} with {m3['score']} of confidence.\nModel 4: {val_label(m4['label']} with {m4['score']} of confidence."
16
  return prediction
17
 
18
  ifg = gr.Interface(fn=predict, inputs=[gr.Textbox(placeholder='Escribe aquí...')], outputs="text")
 
12
 
13
  def predict(text):
14
  m3 = classifier3(text)[0]
15
+ prediction = f"Model 3: {val_label(m3['label'])} with {m3['score']} of confidence.\nModel 4: {val_label(m4['label'])} with {m4['score']} of confidence."
16
  return prediction
17
 
18
  ifg = gr.Interface(fn=predict, inputs=[gr.Textbox(placeholder='Escribe aquí...')], outputs="text")