Closed asmith26 closed 1 year ago
@shahbuland
You need to create a client. Create client is what gives you a user/pass, not launch. That being said the script should be doing that. I'll look into it
Hey @shahbuland I am also stuck on this page:
Okay I tried the docs_example.py
example.
Turns out (1, 673696)
is the (user id, password).
When trying this with image_selection.py
I am getting this error though:
The image actually doesn't exist:
but ideally it should not crash, right?
Possibly another idea/quick question: is there a way to disable user authentication?
UPDATE/FOUND FIX: Removed share = True
, from these lines:
Oh nice. Thanks @asmith26 :)
Possibly another idea/quick question: is there a way to disable user authentication?
UPDATE/FOUND FIX: Removed
share = True
, from these lines:
Bit confused by this. Share should just change whether the gradio demo is accessible by people outside your local connection. By disabling user auth, you are referring to the field where it asks for a user and password at start right? What would the desired behavior be (cc @ayulockin)? For it to just get you to the labelling screen immediately without any identifying information being needed? I see two options:
During development, I imagined that this imposed a security risk as it means anyone with url can start writing to your dataset. What is preferred?
Bit confused by this. Share should just change whether the gradio demo is accessible by people outside your local connection.
So I've found by removing share=True
has fixed the actual problem in this issue (i.e. that I couldn't run the "Getting started" guide). I think what was happening without this change is that gradio would try to create such a public link/app, but I think a proxy network was blocking this, hence the app would just hang.
Maybe we could make this more customisable when cheese.launch()
is ran (my personal preference/thought is to have share=False
the default and then a user can use something like cheese.launch(share=True)
as required).
By disabling user auth, you are referring to the field where it asks for a user and password at start right?
This was just an idea to help me get the "Getting started" example running - I'm less worried about this now that I have fixed my issue, but it might be beneficial to remove user auth if it's possible and simplify things etc.
You need to create a client. Create client is what gives you a user/pass, not launch. That being said the script should be doing that. I'll look into it
Which client to run and how ? Can you add that to readme ?
Figured it out, gotta add this. Is there a way to let users sign up ? or give predefined users and passowrds ? usr, passwd = cheese.create_client(1)
print(usr, passwd )
I'm following https://cheese1.readthedocs.io/en/latest/started.html, but when I run the python command (related: https://github.com/CarperAI/cheese/pull/47) I get a URL but no client id/password:
Desktop:
Many thanks for any help! :)