Gradio paste not working

2024. 11. 14. 10:05·알쓸신잡

Gradio에서는 Textbox 객체나, Number 객체에 `show_copy_button`이라는 파라미터가 있고, 이를 True로 설정하면 아래 이미지와 같이 복사버튼이 생성되고, 텍스트 복사가 가능하다.

그런데, 나는 버튼이 생겼고, 이 버튼을 눌렀음에도 복사가 불가능했고 찾아보니 gradio의 문제가 아니라 브라우저에서 웹페이지가 localhost가 아니라 `http`인 경우 발생하는 문제였다.

 

이를 해결하기 위해서는 주소창에 아래 주소를 입력해서 chorme 설정에 들어가서 `Insecure origins treated as secure` 옵션을 `Enabled`로 바꿔주고, 좌측에 gradio가 켜지는 서버:포트를 적어주면 된다.

chrome://flags/#unsafely-treat-insecure-origin-as-secure

 

Reference

 

show_copy_button stops working when server_name is not localhost · Issue #6695 · gradio-app/gradio

Describe the bug I had set show_copy_button=True, show_label=True for the Textbox and the copy button work well in my local laptop, but when I set server_name demo.queue().launch(share=False, serve...

github.com

 

"unsafely-treat-insecure-origin-as-secure" flag is not working on Chrome

I am using geo-location for a site running locally on my machine using HTTP on Chrome. However this does not work as I am running on HTTP as opposed to HTTPS. On the console it says: getCurrentPosi...

stackoverflow.com

 

728x90

'알쓸신잡' 카테고리의 다른 글

yolo 가이드  (0) 2024.11.22
pip bad interpreter  (0) 2024.11.20
Gradio FileExplorer refresh  (0) 2024.11.11
GitHub Copilot in the CLI  (0) 2024.11.08
[pgAdmin error] Your account is locked. Please contact the Administrator.  (0) 2024.10.18
'알쓸신잡' 카테고리의 다른 글
  • yolo 가이드
  • pip bad interpreter
  • Gradio FileExplorer refresh
  • GitHub Copilot in the CLI
창빵맨
창빵맨
  • 창빵맨
    Let's be Developers
    창빵맨
    로그인/로그아웃
  • 전체
    오늘
    어제
    • 분류 전체보기 (481)
      • 알쓸신잡 (88)
      • ML & DL (85)
        • Computer v.. (22)
        • NLP (22)
        • 파이썬 머신러닝 완.. (3)
        • 개념정리 (38)
      • 리눅스 (21)
      • 프로젝트 (29)
        • 산불 발생 예측 (6)
        • 음성비서 (12)
        • pdf 병합 프로그.. (0)
        • 수위 예측 (5)
        • 가짜 뉴스 분류 (5)
        • 전력사용량 예측 (1)
      • 코딩테스트 (217)
        • 프로그래머스[Pyt.. (17)
        • 프로그래머스[Fai.. (3)
        • 백준[Python] (160)
        • 이것이취업을위한코딩.. (18)
        • 파이썬 알고리즘 (19)
      • 데이터분석실습 (25)
        • 데이터 과학 기반의.. (18)
        • 헬로 데이터 과학 (7)
      • 메모장 (0)
      • 잡담 (4)
  • Blog

    • 🏠 Home

    ✏️글쓰기
    💻 관리

    Personal

    GITHUB
    Instagram
  • 공지사항

  • 인기 글

  • 태그

    백준
    dp
    BFS
    그리디
    DFS
    이코테
    이분탐색
    이것이취업을위한코딩테스트다
    나동빈
    파이썬
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
상단으로

티스토리툴바