create new ai chatbot model and some features 1) real human friends (girlfriend or…
- User
create new ai chatbot model and some features 1) real human friends (girlfriend or boyfriend) like chat response 2) to train model use my data "your_dataset1.csv" and 3) input text automatic self upgrade and improve chat reponse and give me code
- Assistant
- User
give me full code file and not use pre train model
- Assistant
- User
AttributeError: 'float' object has no attribute 'lower'
- Assistant
- User
ValueError: in user code:
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1401, in train_function * return step_function(self, iterator) File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1384, in step_function ** outputs = model.distribute_strategy.run(run_step, args=(data,)) File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1373, in run_step ** outputs = model.train_step(data) File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1155, in train_step return self.compute_metrics(x, y, y_pred, sample_weight) File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1249, in compute_metrics self.compiled_metrics.update_state(y, y_pred, sample_weight) File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/compile_utils.py", line 620, in update_state metric_obj.update_state(y_t, y_p, sample_weight=mask) File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/metrics_utils.py", line 77, in decorated result = update_state_fn(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/keras/src/metrics/base_metric.py", line 140, in update_state_fn return ag_update_state(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/keras/src/metrics/base_metric.py", line 723, in update_state ** matches = ag_fn(y_true, y_pred, **self._fn_kwargs) File "/usr/local/lib/python3.10/dist-packages/keras/src/metrics/accuracy_metrics.py", line 459, in sparse_categorical_accuracy matches = metrics_utils.sparse_categorical_matches(y_true, y_pred) File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/metrics_utils.py", line 961, in sparse_categorical_matches y_true = tf.squeeze(y_true, [-1]) ValueError: Can not squeeze dim[1], expected a dimension of 1, got 20 for '{{node Squeeze}} = Squeeze[T=DT_FLOAT, squeeze_dims=[-1]](remove_squeezable_dimensions/Squeeze)' with input shapes: [?,20]. - Assistant
- User
- Assistant
- User
model reponse is (i ) this not like human or not in text formate please fix update code
- Assistant
- User
add feature user input text then give reponse
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.