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

Added timeout and error handling for frpc tunnel #5731

Merged
merged 9 commits into from
Sep 28, 2023

Conversation

cansik
Copy link
Contributor

@cansik cansik commented Sep 28, 2023

Description

As discussed in #3677, the current implementation for sharing gradio services does not handle frpc errors well. The error message is not displayed and the while loop to check for success runs forever.

Technical fix

This PR adds the ability to set a timeout (in seconds) for tunneling. This allows all the logs from frpc to be collected and printed in the error stream when an error occurs. It also fixes the possibility of an infinite loop. If possible, the error or success is handled before the timeout by parsing the current logs (as in the actual implementation).

Usability

Since creating a tunnel can take a long time (default: 30 seconds), I would suggest showing a message that the shared link is being created. Otherwise it is not clear to the user that gradio is still doing something. Printing Running on local URL may give the user the impression that gradio is finished and only running locally. This PR prints the message Creating shared link... as user feedback.

Example

Here is an example when the firewall blocks the request:

Running on local URL:  http://127.0.0.1:7860
Creating shared link...
2023/09/28 10:56:04 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: i/o timeout

Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.

Closes: #3677

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Sep 28, 2023

🪼 branch checks and previews

Name Status URL
🦄 Changes detected! Details

@cansik cansik mentioned this pull request Sep 28, 2023
1 task
@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Sep 28, 2023

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio patch
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Added timeout and error handling for frpc tunnel

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@abidlabs abidlabs self-requested a review September 28, 2023 19:14
@abidlabs abidlabs self-assigned this Sep 28, 2023
@abidlabs
Copy link
Member

made some small tweaks -- stripping the log lines was breaking the regex to identify the url for example -- but otherwise tested and looks good to me. Thanks @cansik!

@cansik
Copy link
Contributor Author

cansik commented Sep 28, 2023

Ok, that sounds great, I may have overlooked this mistake. But I guess it would make sense to add the strip for the messages that are added to the log, otherwise we have unnecessary empty lines in there.

The line usually contained a \n, which is basically treated as no output. That's why I stripped it. Have you tried it with a blocked firewall as well? Otherwise I would do that just to see if it prints correctly now.

And thanks for the adjustments!

@abidlabs
Copy link
Member

Ok, that sounds great, I may have overlooked this mistake. But I guess it would make sense to add the strip for the messages that are added to the log, otherwise we have unnecessary empty lines in there.

Yup makes sense, will add that back in

@abidlabs abidlabs merged commit c9af4f7 into gradio-app:main Sep 28, 2023
12 of 16 checks passed
@pngwn pngwn mentioned this pull request Sep 28, 2023
freddyaboulton added a commit that referenced this pull request Oct 12, 2023
* Accessibility Improvements (#5554)

* allow remove token via keyboard

* more a11y enhancements

* upload + dataset a11y tweaks

* add changeset

* add webcam label

* improve checkbox focus styling and allow interaction via keyboard

* add changeset

* improve radio focus color

* tweak

* add radio label

* add changeset

* add annotated image alt + use button for labels

* button tweaks

* add changeset

* tweak

* more changes

* tiny tweaks

* galley / image

* label tweaks and add semantic tags to confidence

* nit + docstring

* tweak

* add changeset

* fix tests

* unit test fix

* range tweak

* fix alignment in gallery

* range tweak

* slider test tweak

* tweak

* more test fixes

* last? test tweak

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix secondary hue bug in gr.themes.builder() (#5660)

* fix: builder_app.py

* add changeset

* add changeset

---------

Co-authored-by: Freddy Boulton <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* Improve plot rendering (#5642)

* changes

* add changeset

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Freddy Boulton <[email protected]>

* Add `render_markdown` parameter to chatbot (#5604)

* disable markdown

* add changeset

* pr fixes

* format

* add changeset

* new line

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Prevent Clients from accessing API endpoints that set `api_name=False` (#5653)

* only autoscroll if user hasn't scrolled up

* docstring

* format

* client

* add changeset

* add changeset

* restore

* add changeset

* fix python client, add test

* format

* js client

* format

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix width and height issues that would cut off content in `gr.DataFrame` (#5616)

* fix dataframe height

* fix widths

* add changeset

* fixes

* format

* case

* add changeset

* dataframe docstring

* format

* fix ts

* test components

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Add the brand assets page to the website (#5643)

* Add the /brand page to the website

* add changeset

* Fix layout

* Put each logo in a different line

* fix footer

* remove unnenecessary header

* better spacing

* Add png files

* Set the size of brand-assets/gradio-logo.svg as 64x64

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: aliabd <[email protected]>

* Fix functional tests (#5682)

* unnamed

* add changeset

* add build

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix small issues in docs and guides (#5669)

* Keep website guides sidebar width consistent

* add next / prev buttons to chatinterface

* add changeset

* sidebar fixes on docs

* clean iframes from guides

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* [Refactoring] Convert async functions that don't contain `await` statements to normal functions (#5677)

* [Refactoring] Convert async functions that don't contain `await` statements to normal functions

* add changeset

* add changeset

* fix tests

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Pause autoscrolling if a user scrolls up in a `gr.Textbox` and resume autoscrolling if they go all the way down (#5652)

* only autoscroll if user hasn't scrolled up

* docstring

* fixes

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* chore(deps): update dependency @types/prismjs to v1.26.1 (#5671)

* chore(deps): update dependency @types/prismjs to v1.26.1

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Add `gr.on` listener method (#5639)

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* add query parameters to the `gr.Request` object through the `query_params` attribute (#5681)

* add queryParams to frontend request to backend

* add changeset

* update guide

* added docs

* add changeset

* fix tests

* client

---------

Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* Reorganize Docs Navbar and Fill in Gaps (#5675)

* remove combining-interfaces

* reorg navbar and other changes

* better docs for error, warning, and info

* group them together

* navbar reactively update

* add changeset

* lint

* fix chatinterface test

* fix test again

* revert changes to chatinterface test

* Update gradio/helpers.py

Co-authored-by: Abubakar Abid <[email protected]>

* Update gradio/helpers.py

Co-authored-by: Abubakar Abid <[email protected]>

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Hannah <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Fix functional tests, part 2 (#5687)

* remove build

* intentionally break

* add changeset

* testing string

* change to false

* throw error

* revert break

* delete changeset

* add client js files to cache

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* setting share=True on Spaces or in wasm should warn instead of raising error (#5696)

* setting share=True on Spaces or in wasm should raise warning instead of error

* tweak

* add changeset

* lint

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix incorrect behavior of `gr.load()` with `gr.Examples` (#5690)

* testing

* fixes

* chat fix

* lint

* add changeset

* fix

* simplify

* simplify

* spacing

* remove print

* docstring

* dataset

* lint

* add changeset

* fix test

* add test

* added test

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Increase Slider clickable area (#5697)

* slider click area

* add changeset

* fix

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix blocks essay demo to use non-reserved keywords (#5698)

* fix demo

* notebook

* chore: update versions (#5596)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix for regression in rendering empty Markdown (#5701)

* quick fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* chore: update versions (#5702)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: prevent internal log_message error from `/api/predict` (#5711)

* Prevent erroring on log_message from /api/predict

* add changeset

* add changeset

* add changeset

* updated docstrings

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Context-based Progress tracker (#5693)

* Context-based Progress tracker

* Lint

* add changeset

* Context-based virtual unpatch

* Avoid creating TrackedIterable if not patched

* Fix function_wrapper args

* More correct

* Add some types

* Single Progress instance to allow nested tqdms

* progress_tracker -> progress

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas (#5668)

* print

* add changeset

* url

* routes

* routes

* test

* test

* add to / route

* comment

* root_url approach

* replica url

* print

* print

* test

* revert

* fixes

* changes

* replica url fix

* lint

* routes

* routes

* fix

* docstring

* add changeset

* add changeset

* add changeset

* modify in place

* add test

* unit tests

* fix copy

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fixes gr.select() Method Issues with Dataframe Cells (#5713)

* fixes

* add changeset

* pr fixes

* fix

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Make Tab and Tabs updatable (#5714)

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* fix changelogs (#5718)

* Adds copy buttons to website, and better descriptions to API Docs (#5721)

* add missing docstring to highlightedtext

* add description to return types in api_docs

* add copy buttons to docs

* fix up descriptions for filepaths

* add copy buttons to every codeblock

* add changeset

* fix backend tests

* add changeset

* better worded descriptions

* fix color_map description

* fix formatting in code snippets

* add space

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Adjust translation (#5726)

* Adjust translation

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Hannah <[email protected]>

* Fix for deepcopy errors when running the replica-related logic on Spaces (#5722)

* fix changelogs

* pass

* add changeset

* test

* config

* change

* fixes

* route utils

* add changeset

* add changeset

* add lock

* print

* route url

* replicas

* replicas

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* ensure internal data has updated before dispatching `success` or `then` events (#5705)

* ensure internal data has updated before dispatching then or success events

* ensure internal data has updated before dispatching then or success events

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Add a bare `Component` type to the acceptable type list of `gr.load()`'s `inputs` and `outputs` (#5732)

* Add a bare `Component` type to the acceptable type list of `gr.load()`'s `inputs` and `outputs`

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Freddy Boulton <[email protected]>

* chore: update versions (#5712)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Added timeout and error handling for frpc tunnel (#5731)

* added timeout and error handling for frpc tunnel

* add changeset

* lint

* typing

* spell

* tunneling

* lint

* strip

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Ensure images with no caption download in gallery (#5735)

* ensure images with no caption download in gallery

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Add design tokens to storybook (#5750)

* add design tokens to storybook

* tweak

* tweak

* visual tweaks

* add icons

* Improve chatbot accessibility and UX (#5699)

* add a11y changes and css tweaks

* add a11y changes and css tweaks

* change like/dislike/copy buttons ux

* cleanup

* add laout param

* tweak

* add changeset

* fill icon on click

* text alignment tweak

* format + test

* fix browser test

* avatar tweaks

* add stories

* tweak

* tweak

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Set share=True for all Gradio apps in Colab by default (#5767)

* Set share=True for all Gradio apps in Colab by default

* add changeset

* fix tests

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Added support for pandas `Styler` object to `gr.DataFrame` (initially just sets the `display_value`) (#5569)

* adding precision to df

* add changeset

* docstring

* precision

* add changeset

* fix

* fixes

* add changeset

* add visual test

* lint

* fixes

* lint

* format

* add changeset

* ts changes

* analytics

* dataframe typing

* typing

* demo

* fix

* lint

* interactive dataframe

* dataframe

* fix typing

* add test

* upgrade pandas version

* fix pandas version

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Don't raise warnings when returning an updated component in a dictionary (#5766)

* testing

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix Gallery `columns` and `rows` params (#5754)

* fix gallery params

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Fix new line issue in chatbot (#5755)

* fix new line

* add changeset

* line breaks param

* add changeset

* fix test

* Update gradio/components/chatbot.py

* Update gradio/components/dataframe.py

* Update gradio/components/markdown.py

* add changeset

* fix static markdown

* lint

* line breaks

* fixes

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* chore: update versions (#5742)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* add label to changeset pr (#5772)

* Always deploy to spaces (#5777)

* Lite: Websocket queueing (#5124)

* Create a Wasm-emulated WebSocket connection and fix @gradio/client to inject it

* Explicitly set the default response class for the Wasm mode

* add changeset

* Fix is_self_origin() to compare only hosts and rename it to is_self_host()

* Fix Blocks.close() to cancel async tasks in the case of Wasm and call it from wasm_utils.register_app() to dispose an old app instance

* Update comment

* Hold the asyncio.Task objects and cancel them at `Blocks.close()`

* Add try-except to handle the case where `events` is not set to `queue.active_jobs` when `queue.process_events` is called

* Format queueing.py

---------

Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* fix pending chatbot message styling and ensure messages with value `None` don't render (#5775)

* fix pending chatbot message styling

* border fixes

* add changeset

* add changeset

* ensure null messages arent shown

* add hide css again

* render loading inside message + add test

* fix test

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* change minor to patch (#5793)

* chore: update versions (#5786)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Adds `change()` event to `gr.Gallery` (#5780)

* add change event to gallery

* revert

* format

* add changeset

* lint

* add tests

* lint

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Throw helpful error when media devices are not found (#5794)

* add test

* add changeset

* tweak copy

* error logic

* add changeset

* copy tweak

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* ensure the client does not depend on `window` when running in a node environment (#5787)

* modify url_params

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Add component <-> server direct communication support, as well as a "file explorer" component (#5672)

* changes

* changes

* add changeset

* add changeset

* Server fns ext (#5760)

* start changes

* changes

* changes

* fix arrows

* add changeset

* rename demo

* fix some ci

* add changeset

* add changeset

* fix

* remove configs

* fix

* fix

* add changeset

* fixes

* linting

* Update gradio/components/file_explorer.py

* notebook

* typing

* tweaks

* fixed class method problem

* fix test

* file explorer

* gr.load

* format

* tweaks

* fix

* fix

* fix

* fix

* final tweaks + changelog

* changelog

* changelog

* changelog

* lint

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: pngwn <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Update `CONTRIBUTING.md` (#5799)

* updates

* tweak

* tweaks

* tweaks

* add troubleshooting

* storybook tweak

* add review changes

* fe tweak

* Revert replica proxy logic and instead implement using the `root` variable (#5776)

* Revert "Fix for deepcopy errors when running the replica-related logic on Spaces (#5722)"

This reverts commit dba6519.

* Revert "Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas (#5668)"

This reverts commit d626c21.

* add changeset

* Trigger local

* add changeset

* add to root

* add changeset

* strip url

* resolve root

* changes

* fix

* format

* logs

* format

* add changeset

* reverse order

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Prevent bokeh from injecting bokeh js multiple times  (#5795)

* remove dep line in demo

* linting

* linting

* fix

* merge

* add changeset

* lint

* notebook:

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Adds the ability to set the `selected_index` in a `gr.Gallery` (#5783)

* selected_index

* Gallery

* changes

* modify

* add changeset

* fix select issue

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* added try except block in `state.py` (#5790)

* added try except block in `state.py`

added try except block in `state.py` which will raise a "ValueError"

* add changeset

* updated `state.py` and added test for deepcopy

updated `state.py` and added test for deepcopy named test_initial_value_deepcopy in `test/test_components.py`

* lint

* test fix

* explain test

---------

Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* Fix `gr.SelectData` so that the target attribute is correctly attached, and the filedata is included in the data attribute with `gr.Gallery` (#5798)

* fix select

* add changeset

* add changeset

* restore

* refactor

* add pytest

* typo

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* docs: fix website directory in CONTRIBUTING.md (#5810)

* chore: update versions (#5796)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix calls to the component server so that `gr.FileExplorer` works on Spaces (#5816)

* changes

* add changeset

* changes

* demo

* file explorer

* lint

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* chore: update versions (#5817)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Lite: Fix Examples.create() to be a normal func so it can be called in the Wasm env (#5821)

* Fix Examples.create() to be a normal func so it can be called in the Wasm env

* add changeset

* Add a comment line

---------

Co-authored-by: gradio-pr-bot <[email protected]>

* Convert async methods in the Examples class into normal sync methods (#5822)

* Convert async methods in the Examples class into normal sync methods

* add changeset

* Fix test/test_chat_interface.py

* Fix test/test_helpers.py

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Quick fix: Chatbot change event (#5827)

* fix

* add changeset

* add dequal to dependency

* package

* lint

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Assert refactor in external.py (#5811)

* Refactored assert statements to if statements

* format-addons

* format

* add changeset

* Update gradio/external.py

Co-authored-by: Abubakar Abid <[email protected]>

* refactored video.py

* refactored all the assert statements with response

* add changeset

* add changeset

* Apply suggestions from code review

* Refactored documentation.py and few more files

* avoid circular

* Replaced all assert statements

* lint

* notebooks

* fix

* minor changes

* final changes according to tests

* Lint

* last fix

* fix

* fix utils test

* fix serialization error

* fix serialization error

---------

Co-authored-by: harry-urek <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Fix error when scrolling dropdown with scrollbar (#5839)

* Fix error when scrolling dropdown with scrollbar

* added comment

* add changeset

---------

Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* Mention that audio is normalized when converting to wav in docs (#5835)

* Mention that audio is normalized when converting to wav in docs

* add changeset

---------

Co-authored-by: Freddy Boulton <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* Add support for gr.Request to gr.ChatInterface (#5819)

* Add support for gr.Request to gr.ChatInterface

* add changeset

* gr.ChatInterface: loose check for gr.Request

* add request test

* update test and chat_interface

* chat interface

* fix test

* formatting

* fixes

* fix examples and add test

* remove .update usage

* revert interface changes

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>

* Add code

* lint

* Lint

* Radio

---------

Co-authored-by: Hannah <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Freckles <[email protected]>
Co-authored-by: aliabid94 <[email protected]>
Co-authored-by: Dawood Khan <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <[email protected]>
Co-authored-by: aliabd <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: D V <[email protected]>
Co-authored-by: Hannah <[email protected]>
Co-authored-by: pngwn <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Charles Bensimon <[email protected]>
Co-authored-by: ylhsieh <[email protected]>
Co-authored-by: Florian Bruggisser <[email protected]>
Co-authored-by: gibiee <[email protected]>
Co-authored-by: Srijan Sahay Srivastava <[email protected]>
Co-authored-by: Regina Reynolds <[email protected]>
Co-authored-by: Hari Om Bhardwaj <[email protected]>
Co-authored-by: harry-urek <[email protected]>
Co-authored-by: Kit PANG <[email protected]>
Co-authored-by: Aileen Villanueva Lecuona <[email protected]>
@meihao5631
Copy link

I have perfectly solved the problem where "share=true" does not work. You need to add two lines of code to this location in the "tunneling.py" file.
the location of "tunneling.py" file: /home/[your anaconda virtual environment
]/lib/python3.11/site-packages/gradio/tunneling.py
recLj6mg4CfaMGEooD2P57tunRn7MyuTqaa

@cansik
Copy link
Contributor Author

cansik commented Jun 5, 2024

@abidlabs Should we include tls enforcement into the tunneling call?

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.

Share link issues
4 participants