[Zcj] Feature: 完成 AI 智能助手项目

This commit is contained in:
zcj
2026-03-21 15:05:22 +08:00
commit 458c7a3a75
3 changed files with 24 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
__pycache__/
.env
.venv/
*.pyc

18
app.py Normal file
View File

@@ -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")

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
streamlit>=1.28.0
python-dotenv>=1.0.0