gradio: Hello World "Error" Output

Describe the bug

This has been reported too here: https://github.com/gradio-app/gradio/issues/4970

Running in Python 3.9

Output in the browser: https://i.imgur.com/jFHVJtC.png

import gradio as gr

def echo_name(name): return name

interface = gr.Interface( fn=echo_name, inputs=gr.inputs.Textbox(lines=1, placeholder=“Enter your name here…”), outputs=“text”, )

interface.launch()

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

Doesn’t matter what I do, error is there.

Screenshot

Output in the browser: https://i.imgur.com/jFHVJtC.png

Logs

Output in the browser: https://i.imgur.com/jFHVJtC.png

System Info

Macbook Pro M1
Anaconda
Spyder IDE
Name: gradio
Version: 3.37.0

Python 3.11.4

Severity

Blocking usage of gradio

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 22 (3 by maintainers)

Most upvoted comments

@freddyaboulton I had the same error, but I downgraded the pydantic version from 2.2.1 to 1.10.7 and it worked fine. I changed the gradio version a lot, but it wasn’t a version issue. I got it working fine with gradio==3.34.0.

Faced the same issue, that is because my gradio was installed with conda install -c conda-forge gradio, uninstall it with ‘conda remove’ and reinstall with pip, it works for me.

I have the same problem. windows python=3.7 gradio=3.34.0

image