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

can´t get it to run in google colab. #277

Closed
kairin opened this issue Dec 22, 2024 · 5 comments
Closed

can´t get it to run in google colab. #277

kairin opened this issue Dec 22, 2024 · 5 comments

Comments

@kairin
Copy link

kairin commented Dec 22, 2024

image

when trying to get it to run in google colab, i just find it odd that the share link is unable to be generated. and that there is this big empty space in the middle.

the changes i made is simply: https://github.com/kairin/fluxgym/blob/dd3fbb0f8149077bc8447ce8ad6e1897e1a1d99b/app.py#L1120

if __name__ == "__main__":
    cwd = os.path.dirname(os.path.abspath(__file__))
    # demo.launch(share=True, debug=True, show_error=True, allowed_paths=[cwd])
    demo.launch(share=True)

which again i thought is odd since it's just a simple line/add.

so, i tried to launch it locally and this is what i actually encountered instead:

image

Running on local URL:  http://127.0.0.1:7860
2024-12-22 11:11:02 INFO     HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK"                                  _client.py:1025
                    INFO     HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK"                                               _client.py:1025

Could not create share link. Missing file: /home/k/.pyenv/versions/ven2/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.2. 

Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 

1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
2. Rename the downloaded file to: frpc_linux_amd64_v0.2
3. Move the file to this location: /home/k/.pyenv/versions/ven2/lib/python3.10/site-packages/gradio

does anyone know what is preventing this from downloading since Gradio is supposed to generate a share link simply with 'launch(share=true)'.

@kairin
Copy link
Author

kairin commented Dec 22, 2024

trying to see if this issue is related

gradio-app/gradio#8186

@kairin
Copy link
Author

kairin commented Dec 22, 2024

https://status.gradio.app/

when checking the status, it is showing that share is operational. gradio-app/gradio#8186 (comment)

image

@kairin
Copy link
Author

kairin commented Dec 22, 2024

gradio-app/gradio#3677 (comment)

created a testapp just to see if plain gradio links works... and yes. there is no issue there...

@kairin
Copy link
Author

kairin commented Dec 22, 2024

gradio-app/gradio#3677 (comment)

testapp runs fine and outputs Gradio sharelink.

however original app.py file still does not output the sharelink even though 'launch(share=True)' is added.

@kairin
Copy link
Author

kairin commented Dec 22, 2024

https://github.com/kairin/fluxgym/blob/107ad330e006401b88a679ccc57f984c32a89143/READMEGoogleColab.md

got it to run in google colab. apparently the sharelink does not appear normally in colab. not sure why.

@kairin kairin closed this as completed Dec 22, 2024
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

No branches or pull requests

1 participant