sanjid commited on
Commit
3c9daf5
·
1 Parent(s): e31285a

App update for placeholder

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ with open("label_types_encoded.json", "r") as fp:
11
  genres = list(encode_genre_types.keys())
12
 
13
  inf_session = rt.InferenceSession('news-classifier-quantized.onnx')
14
- input_name = inf_session.get_inputs()[0].name
15
  output_name = inf_session.get_outputs()[0].name
16
 
17
  def classify_news_label(Body):
 
11
  genres = list(encode_genre_types.keys())
12
 
13
  inf_session = rt.InferenceSession('news-classifier-quantized.onnx')
14
+ input_name = inf_session.get_inputs(placeholder="Enter a news article here")[0].name
15
  output_name = inf_session.get_outputs()[0].name
16
 
17
  def classify_news_label(Body):