From 458c7a3a75166a82efdf9def8c4f0b51701840ab Mon Sep 17 00:00:00 2001 From: zcj Date: Sat, 21 Mar 2026 15:05:22 +0800 Subject: [PATCH] =?UTF-8?q?[Zcj]=20Feature:=20=E5=AE=8C=E6=88=90=20AI=20?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=8A=A9=E6=89=8B=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++++ app.py | 18 ++++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 .gitignore create mode 100644 app.py create mode 100644 requirements.txt 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