You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This simple Gradio sample no longer stays running:
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
It dies with:
~/.pyenv/versions/3.10.12/bin/python /Users/christophermead/posit/qa-example-content/workspaces/python_apps/gradio_example/gradio_example.py
(base) ➜ qa-example-content ~/.pyenv/versions/3.10.12/bin/python /Users/christophermead/posit/qa-example-content/workspaces/python_apps/gradio_example/gradio_exam
ple.py
* Running on local URL: http://127.0.0.1:7860
Traceback (most recent call last):
File "/Users/christophermead/posit/qa-example-content/workspaces/python_apps/gradio_example/gradio_example.py", line 5, in <module>
demo.launch()
File "/Users/christophermead/.pyenv/versions/3.10.12/lib/python3.10/site-packages/gradio/blocks.py", line 2582, in launch
raise ValueError(
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
Steps to reproduce the issue:
Run simple Gradio sample above
Note that it will run but will quickly die
Expected or desired behavior:
Gradio continues to run.
Were there any error messages in the UI, Output panel, or Developer Tools console?
Did not see any
The text was updated successfully, but these errors were encountered:
System details:
Positron and OS details:
Positron Version: 2024.12.0 (Universal) build 41
OSX
Interpreter details:
Python 3.10.12
Describe the issue:
This simple Gradio sample no longer stays running:
It dies with:
Steps to reproduce the issue:
Expected or desired behavior:
Gradio continues to run.
Were there any error messages in the UI, Output panel, or Developer Tools console?
Did not see any
The text was updated successfully, but these errors were encountered: