Git Product home page Git Product logo

Comments (10)

shahbuland avatar shahbuland commented on July 23, 2024 1

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

from cheese.

ayulockin avatar ayulockin commented on July 23, 2024 1

Oh nice. Thanks @asmith26 :)

from cheese.

asmith26 avatar asmith26 commented on July 23, 2024 1

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.

from cheese.

LouisCastricato avatar LouisCastricato commented on July 23, 2024

@shahbuland

from cheese.

ayulockin avatar ayulockin commented on July 23, 2024

Hey @shahbuland I am also stuck on this page:
image

from cheese.

ayulockin avatar ayulockin commented on July 23, 2024

Okay I tried the docs_example.py example.
image

Turns out (1, 673696) is the (user id, password).

When trying this with image_selection.py I am getting this error though:

image

The image actually doesn't exist:

image

but ideally it should not crash, right?

from cheese.

asmith26 avatar asmith26 commented on July 23, 2024

Possibly another idea/quick question: is there a way to disable user authentication?


UPDATE/FOUND FIX: Removed share = True, from these lines:

share = True, quiet = True,

share = True, quiet = True,

from cheese.

shahbuland avatar shahbuland commented on July 23, 2024

Possibly another idea/quick question: is there a way to disable user authentication?

UPDATE/FOUND FIX: Removed share = True, from these lines:

share = True, quiet = True,

share = True, quiet = True,

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:

  1. Add option to drop user info entirely so that user ID is never kept/needed for anything. All you'd have to press is a start button to get started.
  2. Add option so that you do have to enter a user ID, but no password.

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?

from cheese.

djaym7 avatar djaym7 commented on July 23, 2024

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 ?

from cheese.

djaym7 avatar djaym7 commented on July 23, 2024

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 )

from cheese.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.