Skip to content

Commit

Permalink
Don't init arms without license key (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
moria97 authored Dec 6, 2024
1 parent 51dc01e commit cb1645b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pai_rag/app/web/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def make_homepage():
with gr.Tab("\N{rocket} Agent"):
agent_elements = create_agent_tab()
elem_manager.add_elems(agent_elements)
with gr.Tab("\N{bar chart} Data Analysis"):
with gr.Tab("\N{bar chart} DBChat"):
analysis_elements = create_data_analysis_tab()
elem_manager.add_elems(analysis_elements)

Expand Down
5 changes: 3 additions & 2 deletions src/pai_rag/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# init trace
from aliyun.opentelemetry.instrumentation.auto_instrumentation import sitecustomize

import os
if os.getenv("ARMS_LICENSE_KEY"):
from aliyun.opentelemetry.instrumentation.auto_instrumentation import sitecustomize

import click
import uvicorn
from fastapi import FastAPI
Expand Down

0 comments on commit cb1645b

Please sign in to comment.