Browse Source

Import akshare lazzily. (#4708)

### What problem does this PR solve?

#4696

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.16.0
Kevin Hu 8 months ago
parent
commit
b2bb560007
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      agent/component/akshare.py

+ 1
- 1
agent/component/akshare.py View File

@@ -15,7 +15,6 @@
#
from abc import ABC
import pandas as pd
import akshare as ak
from agent.component.base import ComponentBase, ComponentParamBase


@@ -36,6 +35,7 @@ class AkShare(ComponentBase, ABC):
component_name = "AkShare"

def _run(self, history, **kwargs):
import akshare as ak
ans = self.get_input()
ans = ",".join(ans["content"]) if "content" in ans else ""
if not ans:

Loading…
Cancel
Save