From ddeffacc3ea3934f3d64771c6648b379b0b82b7e Mon Sep 17 00:00:00 2001 From: liuyalin Date: Tue, 27 Aug 2024 08:37:05 +0800 Subject: [PATCH] some messages --- requirements.txt | 8 ++++++++ superexcel/SearchResponse.py | 1 - superexcel/main.py | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2e58208 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +streamlit +pandas +openai +jina +duckduckgo-search +pydantic +python-dotenv +beautifulsoup4 \ No newline at end of file diff --git a/superexcel/SearchResponse.py b/superexcel/SearchResponse.py index 79144d6..1dc39f8 100644 --- a/superexcel/SearchResponse.py +++ b/superexcel/SearchResponse.py @@ -1,7 +1,6 @@ from utils import extract_core_content,jinahtml2string # born date, height, weight, nationality, club, position, salary, market value, from duckduckgo_search import DDGS -from pprint import pprint from utils import openai_wrapper from PromptsAndClasses.DynamicDataFormat import create_pydantic_class,DataExtractPrompt import concurrent.futures diff --git a/superexcel/main.py b/superexcel/main.py index 1dfb1e9..f5f1d6a 100644 --- a/superexcel/main.py +++ b/superexcel/main.py @@ -1,10 +1,9 @@ import streamlit as st import pandas as pd -import time from PromptsAndClasses.DynamicDataFormat import create_pydantic_class,DataExtractPrompt from utils import openai_wrapper from SearchResponse import extract_info_from_webpage,process_dataframe_parallel -# 创建一个示例DataFrame + @st.cache_data def get_initial_data(): # 示例数据