Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ with gr.Blocks() as demo:
|
|
| 57 |
visible=False
|
| 58 |
)
|
| 59 |
# 使用 .render() 將 hidden_api 組件加入佈局,雖然 UI 不會顯示,但 API 端點仍會註冊
|
| 60 |
-
hidden_api.render()
|
| 61 |
# 將隱藏的接口作為一個組件加入 Blocks,設定 visible=False
|
| 62 |
hidden_api2 = gr.Interface(
|
| 63 |
fn=respond,
|
|
@@ -68,7 +68,7 @@ with gr.Blocks() as demo:
|
|
| 68 |
description="hidden chat",
|
| 69 |
visible=False
|
| 70 |
)
|
| 71 |
-
hidden_api2.render()
|
| 72 |
|
| 73 |
if __name__ == "__main__":
|
| 74 |
print("Launching Gradio app...")
|
|
|
|
| 57 |
visible=False
|
| 58 |
)
|
| 59 |
# 使用 .render() 將 hidden_api 組件加入佈局,雖然 UI 不會顯示,但 API 端點仍會註冊
|
| 60 |
+
#hidden_api.render()
|
| 61 |
# 將隱藏的接口作為一個組件加入 Blocks,設定 visible=False
|
| 62 |
hidden_api2 = gr.Interface(
|
| 63 |
fn=respond,
|
|
|
|
| 68 |
description="hidden chat",
|
| 69 |
visible=False
|
| 70 |
)
|
| 71 |
+
#hidden_api2.render()
|
| 72 |
|
| 73 |
if __name__ == "__main__":
|
| 74 |
print("Launching Gradio app...")
|