Skip to content
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

TypeError: 'TestTree' object is not callable #46

Open
krisbock opened this issue Nov 9, 2023 · 0 comments
Open

TypeError: 'TestTree' object is not callable #46

krisbock opened this issue Nov 9, 2023 · 0 comments

Comments

@krisbock
Copy link

krisbock commented Nov 9, 2023

Running the sample notebook "Testing Models -- Sentence Pair Classification".
Following code:

# Launch AdaTest!

tests.adapt(
    model,
    generator=gen_model,
    auto_save=True, # Set to "True" to automatically save tests as they are made.
)

# Optionally:
#adatest.serve(tests(model, generator=gen_model, auto_save=True), host='127.0.0.1', port=8080)

Doesn't generate interactive Widget through VSCode or AzureML Notebook experience. Probably not unsurprising. However, when uncommenting the .serve function to generate standalone client, get the error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[22], line 10
      3 tests.adapt(
      4     model,
      5     generator=gen_model,
      6     auto_save=True, # Set to "True" to automatically save tests as they are made.
      7 )
      9 # Optionally:
---> 10 adatest.serve(tests(model, generator=gen_model, auto_save=True), host='127.0.0.1', port=8080)

TypeError: 'TestTree' object is not callable

Running in Jupyter, the widget loads, but then just spins when clicking 'Suggest tests'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant