2022-11-24 15:35:03.961336: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-11-24 15:35:12.807 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 560, in _run_script
self._session_state.on_script_will_rerun(rerun_data.widget_states)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/safe_session_state.py", line 72, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 542, in on_script_will_rerun
self._call_callbacks()
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 555, in _call_callbacks
self._new_widget_state.call_callback(wid)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 277, in call_callback
callback(*args, **kwargs)
File "/app/article_classifire/Classification.py", line 116, in main
abstract_class = solver(abstact_models,[abstract],tag_type=tag_type,data_type='Abstract')
File "/app/article_classifire/Classification.py", line 87, in solver
x = predictor(models,text,n_classes,tag_type=tag_type,data_type=data_type)
File "/app/article_classifire/Classification.py", line 75, in predictor
x = i.predict(newtext)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/appuser/venv/lib/python3.9/site-packages/tensorflow/python/eager/execute.py", line 52, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:
Detected at node 'sequential_1/embedding_1/embedding_lookup' defined at (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 937, in _bootstrap
self._bootstrap_inner()
File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 298, in _run_script_thread
self._run_script(request.rerun_data)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 560, in _run_script
self._session_state.on_script_will_rerun(rerun_data.widget_states)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/safe_session_state.py", line 72, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 542, in on_script_will_rerun
self._call_callbacks()
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 555, in _call_callbacks
self._new_widget_state.call_callback(wid)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 277, in call_callback
callback(*args, **kwargs)
File "/app/article_classifire/Classification.py", line 116, in main
abstract_class = solver(abstact_models,[abstract],tag_type=tag_type,data_type='Abstract')
File "/app/article_classifire/Classification.py", line 87, in solver
x = predictor(models,text,n_classes,tag_type=tag_type,data_type=data_type)
File "/app/article_classifire/Classification.py", line 75, in predictor
x = i.predict(newtext)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler
return fn(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/training.py", line 2350, in predict
tmp_batch_outputs = self.predict_function(iterator)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/training.py", line 2137, in predict_function
return step_function(self, iterator)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/training.py", line 2123, in step_function
outputs = model.distribute_strategy.run(run_step, args=(data,))
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/training.py", line 2111, in run_step
outputs = model.predict_step(data)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/training.py", line 2079, in predict_step
return self(x, training=False)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler
return fn(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/training.py", line 561, in __call__
return super().__call__(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler
return fn(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/base_layer.py", line 1132, in __call__
outputs = call_fn(inputs, *args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 96, in error_handler
return fn(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/sequential.py", line 413, in call
return super().call(inputs, training=training, mask=mask)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/functional.py", line 511, in call
return self._run_internal_graph(inputs, training=training, mask=mask)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/functional.py", line 668, in _run_internal_graph
outputs = node.layer(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler
return fn(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/engine/base_layer.py", line 1132, in __call__
outputs = call_fn(inputs, *args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 96, in error_handler
return fn(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/keras/layers/core/embedding.py", line 208, in call
out = tf.nn.embedding_lookup(self.embeddings, inputs)
Node: 'sequential_1/embedding_1/embedding_lookup'
indices[0,26] = 24544 is not in [0, 15000)
[[{{node sequential_1/embedding_1/embedding_lookup}}]] [Op:__inference_predict_function_1466]