SuperBigtoo commited on
Commit
9d1cd5c
1 Parent(s): 29d8595

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def predict_type(title_input):
23
  title_input = ' '.join(tokenizer.tokenize(' '.join(title_input)))
24
  predictions, raw_outputs = loaded_model.predict([title_input])
25
  predicted_label_name = [type_name for type_name, type_id in typeId.items() if type_id == predictions[0]]
26
- return f"Predicted News Type: {predicted_label_name[0]}"
27
 
28
  iface = gr.Interface(
29
  fn=predict_type,
 
23
  title_input = ' '.join(tokenizer.tokenize(' '.join(title_input)))
24
  predictions, raw_outputs = loaded_model.predict([title_input])
25
  predicted_label_name = [type_name for type_name, type_id in typeId.items() if type_id == predictions[0]]
26
+ return predicted_label_name[0]
27
 
28
  iface = gr.Interface(
29
  fn=predict_type,