seawolf2357 commited on
Commit
cab234d
·
verified ·
1 Parent(s): eaa4578

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -64,7 +64,17 @@ def create_home_screen():
64
 
65
  return home
66
 
 
 
 
 
 
 
67
  if __name__ == "__main__":
68
  home = create_home_screen()
69
- # 시크릿키 "240905"를 비밀번호로 사용
70
- home.launch(auth=("gini", "pick"), server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
64
 
65
  return home
66
 
67
+
68
+ def create_home_screen():
69
+ with gr.Blocks() as home:
70
+ gr.Markdown("Welcome to the secured Gradio interface!")
71
+ return home
72
+
73
  if __name__ == "__main__":
74
  home = create_home_screen()
75
+
76
+ auth = ("gini", "pick") # 인증 정보
77
+ title = "Hello Auth" # 앱 타이틀
78
+
79
+ # Gradio 인터페이스를 정의하고 실행
80
+ gr.Interface(lambda x: "Hello " + x, "text", "text", title=title).launch(auth=auth)