Skip to content

Typo in gradio/inference.py #41

Description

@Sissel-Ng

Line 292:
context_tunebody_byte_list` = list(''.join(context_tunebody_lines[-cut_index:]))
This should be:
context_tunebody_byte_list = list(''.join(context_tunebody_liness[-cut_index:]))

In current situation, if the generated lines are too long, this line will immediately pop error:

Exception in thread Thread-8 (run_inference):
Traceback (most recent call last):
File "/home/mnssss/anaconda3/envs/notagen/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/mnssss/anaconda3/envs/notagen/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/mnssss/NotaGen/gradio/demo.py", line 98, in run_inference
result_container.append(inference_patch(period, composer, instrumentation))
File "/home/mnssss/NotaGen/gradio/inference.py", line 292, in inference_patch
context_tunebody_byte_list = list(''.join(context_tunebody_lines[-cut_index:]))
NameError: name 'context_tunebody_lines' is not defined. Did you mean: 'context_tunebody'?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions