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

gr.DateTime() date picker does not work on Hugging Face Space #10358

Open
1 task done
kushal-10 opened this issue Jan 15, 2025 · 2 comments
Open
1 task done

gr.DateTime() date picker does not work on Hugging Face Space #10358

kushal-10 opened this issue Jan 15, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@kushal-10
Copy link

Describe the bug

I deployed the following code in a Huggig Face Space - here - The Space is running without any errors or warnings but the date picker is not working on the Space. However, this works while running locally. I've tried using both gradio 4.44.1 and 5.12.0 but the date picker does not work on the Space. Also, I've tried running the space on Chrome, Safari and Brave.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

llm_calc_app = gr.Blocks()
with llm_calc_app:

    with gr.Row():
        start_date = gr.DateTime(
        )

        end_date = gr.DateTime(
        )

    llm_calc_app.load()
llm_calc_app.queue()
llm_calc_app.launch()

Screenshot

image
Works while executing locally

Logs

===== Application Startup at 2025-01-14 23:47:32 =====

* Running on local URL:  http://0.0.0.0:7860, with SSR ⚡ (experimental, to disable set `ssr=False` in `launch()`)

To create a public link, set `share=True` in `launch()`.

System Info

tried using both gradio 4.44.1 and 5.12.0

Severity

Blocking usage of gradio

@kushal-10 kushal-10 added the bug Something isn't working label Jan 15, 2025
@abidlabs
Copy link
Member

Interesting, seeing this error in the console:

Uncaught SecurityError: Failed to execute 'showPicker' on 'HTMLInputElement': showPicker() called from cross-origin iframe.

@kushal-10
Copy link
Author

Thank you for looking into this! I wanted to check if this could be resolved soon on Gradio’s end or if there are any recommended alternatives I can implement in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants