Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -193,9 +193,9 @@ footer {
|
|
193 |
padding-top: 20px;
|
194 |
}
|
195 |
"""
|
196 |
-
|
197 |
# 여기에서 show_api=False를 추가해 Gradio의 OpenAPI 스키마 생성을 비활성화합니다.
|
198 |
-
|
199 |
gr.Markdown("# Time Stream")
|
200 |
|
201 |
x_concept_1 = gr.State("")
|
@@ -348,8 +348,5 @@ with gr.Blocks(css=css, title="Time Stream", show_api=False) as demo:
|
|
348 |
)
|
349 |
|
350 |
if __name__ == "__main__":
|
351 |
-
|
352 |
-
|
353 |
-
server_port=7860,
|
354 |
-
enable_api=False # Use enable_api=False if you want to hide API docs
|
355 |
-
)
|
|
|
193 |
padding-top: 20px;
|
194 |
}
|
195 |
"""
|
196 |
+
with gr.Blocks(css=css, title="Time Stream") as demo: # remove show_api=False
|
197 |
# 여기에서 show_api=False를 추가해 Gradio의 OpenAPI 스키마 생성을 비활성화합니다.
|
198 |
+
|
199 |
gr.Markdown("# Time Stream")
|
200 |
|
201 |
x_concept_1 = gr.State("")
|
|
|
348 |
)
|
349 |
|
350 |
if __name__ == "__main__":
|
351 |
+
# Hide the OpenAPI docs:
|
352 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, enable_api=False)
|
|
|
|
|
|