How arpitagupta11/mini-chatgpt-qwen3 works
This repository contains two Streamlit chat interfaces and a separate document-analysis interface. Chat users submit prompts, receive streamed Qwen responses, and see reasoning and answer content; document users upload a PDF or TXT file, preview extracted text, and request key facts, a summary, and a classification. The chat implementations and document workflow are visible in the sampled files; no README documentation was provided.
Main entry points: qwen_app.py Document analysis tasks · app.py Streaming chat · qwen.py Qwen chat interface
Components 15
Chat interfaces
- Streaming chat
app.py - Chat history display
app.py - Prompt and response handling
app.py - Thinking and answer rendering
app.py - Qwen chat interface
qwen.py - Chat history display
qwen.py - Prompt and response handling
qwen.py - Thinking and answer rendering
qwen.py
Document analysis
- Document upload and preview
qwen_app.py - PDF and TXT extraction
qwen_app.py - Document analysis tasks
qwen_app.py - Analysis prompt builder
qwen_app.py
Model inference
- Ollama chat client
app.py
Other components
- User
- Ollama model service
Connections 17
- User → Streaming chat: uses
app.py - Streaming chat → Chat history display: displays history
app.py - Streaming chat → Prompt and response handling: handles input
app.py - Prompt and response handling → Ollama chat client: requests stream
app.py - Prompt and response handling → Thinking and answer rendering: processes stream
app.py - User → Qwen chat interface: uses
qwen.py - Qwen chat interface → Chat history display: displays history
qwen.py - Qwen chat interface → Prompt and response handling: handles input
qwen.py - Prompt and response handling → Ollama chat client: requests stream
qwen.py - Prompt and response handling → Thinking and answer rendering: processes stream
qwen.py - Ollama chat client → Ollama model service: calls
app.py - User → Document upload and preview: uploads document
qwen_app.py - Document upload and preview → PDF and TXT extraction: extracts text
qwen_app.py - Document upload and preview → Document analysis tasks: requests analysis
qwen_app.py - Document analysis tasks → Analysis prompt builder: builds prompts
qwen_app.py - Document analysis tasks → Ollama model service: sends requests
qwen_app.py - Document analysis tasks → Document upload and preview: displays results
qwen_app.py