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

Gradio connection is messed up in "repetition.ipynb" #11

Open
bryan-pardo opened this issue Dec 29, 2020 · 0 comments
Open

Gradio connection is messed up in "repetition.ipynb" #11

bryan-pardo opened this issue Dec 29, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@bryan-pardo
Copy link

bryan-pardo commented Dec 29, 2020

What Section?
repetition.ipynb

Describe the bug
In the tutorial python, something gets messed up with the Gradio connection. When you call
repet.interact(share=True, source='microphone')

The following error gets thrown.


AttributeError Traceback (most recent call last)
in ()
2 # interactively in Colab or Jupyter Notebook
3
----> 4 repet.interact(share=True, source='microphone')

/usr/local/lib/python3.6/dist-packages/nussl/separation/base/separation_base.py in interact(self, add_residual, source, label, share)
127 if label is None: label = f"Separation via {type(self).name}"
128
--> 129 audio_in = gradio.inputs.Audio(source=source, type="file", label=label)
130
131 gradio.Interface(

AttributeError: module 'gradio' has no attribute 'inputs'


Finding this weird, I went ahead and made a new cell in the tutorial and grabbed the very first example code from Getting Started With Gradio:

`
import gradio as gr

def greet(name):
return "Hello " + name + "!"

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()

`

This threw the same error:

AttributeError: module 'gradio' has no attribute 'inputs'
However, when I ran that code from Getting Started With Gradio in a fresh notebook, it ran just fine.

Steps To Reproduce
See above

Expected behavior
A working Gradio interface
What did happen
The error that was thrown (see above)

Software versions*
I checked the gradio version in both the repetition.ipynb and the fresh ipynb, where the bug doesn't happen. No difference: version 1.4.0. Other version info below.

Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0]
nussl 1.1.3rc5
scaper 1.6.4

@bryan-pardo bryan-pardo added the bug Something isn't working label Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant