Spaces:
Paused
Paused
Commit ·
d1675a2
1
Parent(s): 800b349
Add share
Browse files
server.py
CHANGED
|
@@ -12,14 +12,14 @@ openai_api_key = os.getenv("OPENAI_API_KEY")
|
|
| 12 |
def create_interface():
|
| 13 |
title: str = "Prompt Strategy Demo"
|
| 14 |
description: str = "AI Agents Sandbox"
|
| 15 |
-
with gr.Blocks(analytics_enabled=False, capture_session=True, title=title
|
| 16 |
with gr.Tab("Reasoning Router"):
|
| 17 |
create_reasoning_router_ui()
|
| 18 |
with gr.Tab("Knowledge Domains"):
|
| 19 |
create_knowledge_router_ui()
|
| 20 |
|
| 21 |
interface.queue()
|
| 22 |
-
interface.launch(server_name="0.0.0.0", server_port=7000)
|
| 23 |
|
| 24 |
if __name__ == "__main__":
|
| 25 |
create_interface()
|
|
|
|
| 12 |
def create_interface():
|
| 13 |
title: str = "Prompt Strategy Demo"
|
| 14 |
description: str = "AI Agents Sandbox"
|
| 15 |
+
with gr.Blocks(analytics_enabled=False, capture_session=True, title=title) as interface:
|
| 16 |
with gr.Tab("Reasoning Router"):
|
| 17 |
create_reasoning_router_ui()
|
| 18 |
with gr.Tab("Knowledge Domains"):
|
| 19 |
create_knowledge_router_ui()
|
| 20 |
|
| 21 |
interface.queue()
|
| 22 |
+
interface.launch(server_name="0.0.0.0", server_port=7000, share=True)
|
| 23 |
|
| 24 |
if __name__ == "__main__":
|
| 25 |
create_interface()
|