I am trying a simple example of Gradio on a Sagemaker Studio Lab notebook. But the output does not appear. According to the documentation when running on a notebook it should appear right in the notebook. This is indeed what happens when I run the example in Google CoLab. Is an additional setting needed for Sagemaker Studio Lab. The example is
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs= "text", outputs = "text")
demo.launch()
Nothing appears.
Executed demo.launch(), but nothing appeared.