Closed felixsuarez0727 closed 1 year ago
As of now, tree actions have been added. Need to add seven more, at least, and work on computer vision sample app.
As of now, I have added eight actions. Each of them correspond to a different machine learning model.
A minor sample app is also ready:
https://app.appsmith.com/app/test-hugging-face/page1-6258fbf50d3d384069c11017
Moving to QA since the integration and the sample app is ready.
Testcases are available here -
Issues found so far -
In Bert-base-uncased-hateexplain - testcase point 2 fails as text is spelt incorrectly. It could be also reworded to - Please enter your sentence here... This issue occurs across all the commands
Testcase point 3 - FAILS CURRENTLY - it runs even though the field is blank. It should give an appropriate message that required field is missing. This issue occurs across all the commands
Testcase point 6 - FAILS sometimes - an error pops up.
In the "Classificacion-texto-suicida-finetuned-amazon-review" command, testcase point 4 - FAILS CURRENTLY - it gives an output exactly the reverse of the expected output. Actual result - Expected result -
Testcase5 in Classificacion-texto-suicida-finetuned-amazon-review enter an english text equivalent - (FAILS CURRENTLY - is English supported?)
Testcase4 in dehatebert-mono-spanish (Sentiment Analysis) - (FAILS CURRENTLY - it gives an exact opposite response)
Testcase5 in dehatebert-mono-spanish (Sentiment Analysis) - Currently gives a slightly different response number as below: [ [ { "label": "NON_HATE", "score": 0.7812689542770386 }, { "label": "HATE", "score": 0.218731090426445 } ] ]
Detect Acoso TwitterEs - Testcase4 - FAILS CURRENTLY - gives response which is opposite to the expected.
Detect Acoso TwitterEs - Testcase5 - Output is different from what is seen on this url
Discriminator finetuned clasificacion comentariossuicidas - Testcase4 - Response is not the same as seen in the comparison URL.
Discriminator finetuned clasificacion comentariossuicidas - Testcase5 - Currently fails as the text entered gives an opposite response as below: [ [ { "label": "Texto no suicida", "score": 0.24806660413742065 }, { "label": "Texto Suicida", "score": 0.7519333958625793 } ] ]
DistilGPT2 - Testcase4 fails as the response we get is as below - [ { "generated_text": "text=My%20name%20is%20Clara%20and%20I%20am%20a(%20a),%20a=My%20name%20i%20the%20a%20a" }
Expected response as per this url - [ { "generated_text": "My name is Clara and I am a graduate student. I am working in government and business. I can't tell you that I am a little more than a good citizen of California. I do have some personal problems with my job due to social work" } ]
Hugging Face Observations
# | Question/Observation | Related Issue | Resolved |
---|---|---|---|
1 | In Bert-base-uncased-hateexplain - testcase point 2 fails as text is spelt incorrectly | - | No |
2 | It runs even though the field is blank. It should give an appropriate message that required field is missing. | - | No |
3 | FAILS sometimes - an error pops up | - | No |
4 | It gives an output exactly the reverse of the expected output. | - | No |
5 | FAILS CURRENTLY - is English supported? | - | No |
6 | Gives an exact opposite response | - | No |
7 | Currently gives a slightly different response number | - | No |
8 | Gives an exact opposite response | - | No |
9 | Output is different | - | No |
10 | Response is not the same as seen in the comparison URL. | - | No |
11 | Gives an exact opposite response | - | No |
12 | Fails as the response we get | - | No |
13 | The response received on our interface is different | - | No |
14 | Currently fails. Neutral shows the largest value. | - | No |
15 | Currently fails. Joy shows the largest value. | - | No |
16 | Currently fails. Neutral shows the largest value. | - | No |
17 | Does not give the same response as seen in the above url | - | No |
Updates about observations
Note: For the other test we need to do more research on the problem
@felixsuarez0727 can we move this to icebox since we are not actively working on it?
closing this because we are not working on this currently
Docs: https://huggingface.co/inference-api