Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected keyword argument 'model_size' #79

Closed
asadal opened this issue Dec 24, 2023 · 3 comments
Closed

Unexpected keyword argument 'model_size' #79

asadal opened this issue Dec 24, 2023 · 3 comments
Labels
Feature Request New feature or request

Comments

@asadal
Copy link

asadal commented Dec 24, 2023

I ran the server.py on my Mac and was successful.
I then ran the client.py and got the following error:

# Run the client
from whisper_live.client import TranscriptionClient
client = TranscriptionClient(
  "localhost",
  9090,
  is_multilingual=True,
  lang="ko",
  translate=False,
  model_size="base"
)
client()
Traceback (most recent call last):
  File "/Users/asadal/Documents/Dev/Hani/WhisperLive_streamlit.py", line 5, in <module>
    client = TranscriptionClient(
TypeError: TranscriptionClient.__init__() got an unexpected keyword argument 'model_size'

How do I fix this?

==============

Plus:
Is there a way to save the text output by the chrome extension to a file?

Thanks,

@makaveli10 makaveli10 added the Feature Request New feature or request label Jan 1, 2024
@makaveli10
Copy link
Collaborator

@asadal what version of whisper-live are you using ?
No, for now we dont support saving the text output in chrome extension to a file. That being said, you can manually edit the extension and save the outputs from the server to a text file here

message = message["segments"];

Just write the segments to a file as soon as any new segments are received.

@lightwastak3n
Copy link
Contributor

@makaveli10
The param is called model not model_size

model="small",

I guess it got renamed at some point.
I made a PR.

@makaveli10
Copy link
Collaborator

#121 should resolve the model_size argument issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Development

No branches or pull requests

3 participants