Spaces:
Build error
Build error
App update for placeholder
Browse files
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):
|