commit 458c7a3a75166a82efdf9def8c4f0b51701840ab Author: zcj Date: Sat Mar 21 15:05:22 2026 +0800 [Zcj] Feature: 完成 AI 智能助手项目 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6edb86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +__pycache__/ +.env +.venv/ +*.pyc \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..ed6a632 --- /dev/null +++ b/app.py @@ -0,0 +1,18 @@ +# AI 智能问答项目 - zcj 专属 +import streamlit as st +from datetime import datetime + +st.title("✅ AI 智能助手 - zcj") +st.subheader("Claude 自动生成代码") + +now = datetime.now().strftime("%Y-%m-%d %H:%M:%S") +st.write(f"当前时间:{now}") + +user_input = st.text_input("请输入你的问题:") + +if user_input: + st.success(f"AI 回复:你输入的内容是 → {user_input}") + st.info("状态:代码运行正常") + +st.markdown("---") +st.caption("作者:zcj | 仓库:ssh://git@82.156.249.211:2222/zcj/aicode.git") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..97c376d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +streamlit>=1.28.0 +python-dotenv>=1.0.0 \ No newline at end of file