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

(fix typo) change port to 7860 #1436

Conversation

thomasht86
Copy link
Contributor

Why

There is a typo in port number for running custom python spaces through the gradio sdk.
Fixing so that others won't find out the hard way like me.

Sidenote:
I think this is an under-emphasized way of setting up a space.
Consider for example deploying a FastHTML app to spaces, is actually as simple as

from fasthtml.common import *

app,rt = fast_app()

@rt('/')
def get(): return Div(P('Hello World!'), hx_get="/change")

serve(port=7860)

Which means that you can remove a lot of complexity of deploying to a space.
As of now, the recommended approach is to use https://github.com/AnswerDotAI/fasthtml-hf, but this is way easier imho.
Creating a space template for FastHTML would also be nice.

@thomasht86 thomasht86 changed the title change port to 7860 (fix typo) change port to 7860 Oct 2, 2024
@julien-c julien-c requested a review from cbensimon October 2, 2024 10:47
Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching this!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@julien-c julien-c merged commit 0a91bda into huggingface:main Oct 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants