-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
[Bug]: Tried using config but seems I can't change the Translator from sugoi to groq #761
Comments
I think the config is not working on local? Also tested the example/config it will say Failed to load [local] Running in local mode |
there is no when it fails(don't know why its not logged, but it isn't), but the parser works fine. both toml/json parses. I can't test GROQ, but I assume that it should work based on the error
I made sure with another translator that selecting works properly. I don't think it needs to be mentioned, but make sure the config file is valid & exists.malformed data will fail. a validator for example would be |
ah I know why. because of a sketchy fix for |
When I typed the config completely, I couldn't run it either. but i write a config like it works for me. Just write the places you want to change use |
json is quite picky what's allowed to be parsed. for example the comma. at the end of det_auto_rotate or }, is invalid True should be lowercase, but what's valid and what's not is up to the json specifications and has nothing to do with this project. I reccomend either you use a json formatter to fix this(code editor prob does fix these kinds of mistakes or use a web version which definitely fixes I: https://jsonformatter.curiousconcept.com/#) I prefer to use a toml bc of the readability. here's an example for a config file. every value has a default value(null is a default value too). the example config contains every value(the toml version does only have the non null values set) config.toml [translator]
translator = "groq" if you are using the web version you are kinda forced to use json, but you usually would convert a js object to a json and then its valid json code... |
@frederik-uni config file just too confusing |
I mean you can of course do that, but you can just strip the data you want to keep as default to actually keep track what you changed and what’s the default. It will work either way. I don’t quite get what’s hard to understand how the config file works. In toml you write the category it belongs to in the [category] and the config entries under it. And then it is just key=value. A json file takes a bit getting used to but is not that hard to understand. I would copy from the example & change the values to my needs, but create a new file. Btw it's harder to read if you don't have indents, but do whatever you want. My recommendation would be to keep stuff as simple as possible |
@eren-ay @frederik-uni thanks guys you all helping me alot |
Issue
I'm not good at this config, so I made a minor edit and tried to run it. However, I'm having a hard time using Groq. Can someone correct me on how to do this? ctd and mocr seems not running also or is it just me I'm kinda noob at this
Command Line Arguments
Console logs
The text was updated successfully, but these errors were encountered: