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

Add gradio as a dependency? #215

Closed
meg-huggingface opened this issue Jul 27, 2022 · 0 comments
Closed

Add gradio as a dependency? #215

meg-huggingface opened this issue Jul 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@meg-huggingface
Copy link
Contributor

Following the evaluate instructions, you eventually get to a point where you run app.py
When you run that, it mentions you need to check that gradio is installed -- but a bit hard to see because an error is immediately thrown (see below). Perhaps the instructions could specify to install gradio (pip install gradio), or else do it automatically, earlier, by including it with pip install evaluate[template] (if gradio is used for everything)?

(.env) bash-3.2$ python /Users/margaretmitchell/HuggingFace/git/data-measurements-tool/evaluate/npmi_debug/app.py
To create a metric widget with Gradio make sure gradio is installed.
Traceback (most recent call last):
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/evaluate/npmi_debug/app.py", line 6, in
launch_gradio_widget(module)
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/evaluate/src/evaluate/utils/gradio.py", line 97, in launch_gradio_widget
raise error
File "/Users/margaretmitchell/HuggingFace/git/data-measurements-tool/evaluate/src/evaluate/utils/gradio.py", line 94, in launch_gradio_widget
import gradio as gr
ModuleNotFoundError: No module named 'gradio'

@meg-huggingface meg-huggingface added the enhancement New feature or request label Jul 27, 2022
@lvwerra lvwerra closed this as completed Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants