-
Notifications
You must be signed in to change notification settings - Fork 3
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
Access Gradio through HTTP - Improved Error Handling - UI fixes #213
base: develop
Are you sure you want to change the base?
Conversation
It seems pyharp is no longer a submodule in this branch. |
The pyharp folder is in the branch and included in .gitmodules. However, if you saying that because there is no "@ {commit hash}" next to the pyharp's folder name, then yes, I don't know why this is happening. |
Did you change it through the git submodule interface? Or did you just move the code? You should be able to |
…(not needed with http)
Error handling and logging refactoring
DONE
Deleted anything related to python.
Created new GradioClient class that handles all the http requests
Added a new centralized space-url parser that converts all posible url formats to a SpaceInfo object.
These formats can be
Refactoring and cleaning of obsolete code
Added objects that map the OutputLabel classes in pyharp
Parsing OutputLabel data from pyharp
added a c++ formating scheme based on JUCE guidelines using clang-format
Requires gradio 4.43.0
New and more fine-grained model status. Check ModelStatus in utils.h
Refactored error handling.
ErrorType
enums and anError
object. TheError
object contains anErrorType
, a detailed error message (devMessage
), and a corresponding user-friendly error message (userMessage
).fillUserMessage
that converts adevMessage
touserMessage
OpResult
which is returned by many functions (i.e model->load(), model->process() etc). It lets us know if the operation was successful or not (OpResult::ok(), OpResult::fail()) and it also contains theError
object in case of failureVarious bug fixes and improvements