Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,17 +64,6 @@ def create_home_screen():
|
|
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)
|
|
|
64 |
|
65 |
return home
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
if __name__ == "__main__":
|
68 |
home = create_home_screen()
|
69 |
+
home.launch()
|
|
|
|
|
|
|
|
|
|