Giter VIP home page Giter VIP logo

Comments (4)

pietrop avatar pietrop commented on June 6, 2024

Hi @kristinalustig,
Yes, that's a good point, and something I am planning to address. Perhaps by adding a settings panel, where the user can review the credentials.

Here's a bit of an update of where I am at with this.

At the moment, if you uninstall using app cleaner, as described in the user manual when re-installing again it will prompt you to add the credentials again. As app cleaner does a clean uninstall. while just dragging the icon into the trash leaves all the system preferences on the computer (including the API credentials).


This is a bit of a hack, but to review credentials, they are stored inside

/Users/{{you username for the home folder}}/Library/Application Support/autoEdit2/wttskeys.json

To get to that file:

  • click on the finder
  • in the top bar click on Go
  • in the menu select Go To Folder...
  • Then paste this /Users/{{you username for the home folder}}/Library/Application Support/autoEdit2. replacing {{you username for the home folder}} with the name of your computer's home folder.
  • there you'll find wttskeys.json
  • open with Sublime text or equivalent text editor to review. (make sure you don't open with text edit if in rich text mode).

However I'd normally just recommend to uninstall and try again. I am also working on adding some better Error handling to signal the issue when a user puts incorrect credentials and IBM watson returns an error.

from autoedit_2.

pietrop avatar pietrop commented on June 6, 2024

connected with this issue #4

from autoedit_2.

pietrop avatar pietrop commented on June 6, 2024

Added error handing when user puts wrong/incorrect credentials for IBM Watson stt. This will be updated in next release in version 1.0.6

screen shot 2017-04-28 at 00 34 55

For clarities purposes, and in case anyone has better suggestions on how to best implement this, Here is an overview of the implementation.

Modified these modules responsible for generating an saving the transcription

  • /autoEdit_v2/lib/interactive_transcription_generator/transcriber/ibm_stt_node/send_to_watson.js

  • /autoEdit_v2/lib/interactive_transcription_generator/transcriber/index.js

  • /autoEdit_v2/lib/interactive_transcription_generator/index.js

  • /autoEdit_v2/nwjs/db.js

  • and added error as first param of callback, which is set as null if successful.

  • Then in transcription model added error attribute. To store error object to display the info to the user.

  • used model.set() to update model with the error.

  • also added status: null to the transcription to signify there has been an error.

    • This means that there are 3 options for staus:
      • true == sucesfully complete everything,
      • false == still being processed, corresponds to wheel spinning,
      • null == when error occurs with IBM API.
  • then in template view added an if else, and if it's null display error message.
    with some extra text in yellow to allow with troubleshooting.

  • also change bin to error triangle and remove disable.

  • but kept disable on in processed spinning icon for transcription.

More error handling coverage is needed across the app but this is a start.

from autoedit_2.

pietrop avatar pietrop commented on June 6, 2024

Closing for now. Going to deal with allowing user to edit/change credentials with a settings panel at a later stage as a separate issue.

from autoedit_2.

Related Issues (20)

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.