CodingAssistant / app.py

Commit History

Remove eos_token_id and pad_token_id from text generation parameters in chatbot application to streamline configuration and maintain focus on essential settings.
d9b7716

cochi1706 commited on

Update model
ba4780e

cochi1706 commited on

Add example prompt and output display for text generation in chatbot application to demonstrate functionality and enhance user interaction.
6ef4e3c

cochi1706 commited on

Remove repetition penalty and no_repeat_ngram_size parameters from text generation settings, and simplify user message handling in respond function to enhance clarity and focus in chatbot interactions.
ef0de3c

cochi1706 commited on

Add instruction to user message for focused responses in chatbot application, ensuring clarity in user interaction.
4d7fde3

cochi1706 commited on

Add history initialization in respond function to support context tracking in chatbot application.
6b91e92

cochi1706 commited on

Enhance text generation parameters by adding eos_token_id, pad_token_id, repetition_penalty, and no_repeat_ngram_size to improve output quality and prevent repetition in chatbot application.
ff8fc2b

cochi1706 commited on

Increase max_length parameter in text generation to 520 for enhanced output capacity in chatbot application.
1d398ee

cochi1706 commited on

Add optional history parameter to respond function for improved context management in chatbot application.
f70ab9c

cochi1706 commited on

Refactor message handling in response function to support both string and dictionary inputs. Added validation for empty messages to improve user experience by providing a clear error message when no input is received.
a4a178e

cochi1706 commited on

Enhance text generation parameters in chatbot application by setting max_length to 100 and temperature to 0.7. Simplify response function by directly passing the message to the text generator, improving clarity and efficiency in message processing.
84a0118

cochi1706 commited on

Comment out system message handling in response function to simplify message processing and maintain focus on history management in chatbot application.
7a9d7b3

cochi1706 commited on

Comment out history message extension in response handling to prevent unintended message accumulation in chatbot application.
f5b8a40

cochi1706 commited on

Update system message in Vietnamese to emphasize clarity in code solutions while maintaining language preference for responses. This change enhances the instruction for the chatbot's output format.
5b966ea

cochi1706 commited on

Clarify instruction for model responses to ensure output is consistently in Vietnamese. This update reinforces the language preference in the chatbot's response generation process.
8ea8e25

cochi1706 commited on

Add default system message in Vietnamese for chatbot responses and clarify instruction for model output language. This ensures consistent responses in the desired language when no system message is provided.
26e874e

cochi1706 commited on

Refactor text generation in chatbot application to utilize max_new_tokens for improved clarity and added truncation support. Removed unnecessary print statement for generated answer length.
db09be5

cochi1706 commited on

Refactor response handling in chatbot application to support optional system messages and improve message processing. Added checks for empty responses to enhance user experience.
b0d2e27

cochi1706 commited on

Update default max_tokens value and refactor variable names in response generation for clarity in chatbot application.
62a0bb6

cochi1706 commited on

Update response generation in chatbot application to set default values for max_tokens, temperature, and top_p parameters. This enhancement ensures smoother operation when these parameters are not explicitly provided.
676f57c

cochi1706 commited on

Streamline model loading and response generation in chatbot application by utilizing a text generation pipeline. Removed legacy loading methods and improved response handling for enhanced performance and clarity.
76de232

cochi1706 commited on

Refactor model loading process in chatbot application to prioritize local path loading, with enhanced error handling and fallback mechanisms for HuggingFace models and PEFT adapters.
376a746

cochi1706 commited on

Enhance model loading logic in chatbot application to support direct loading and PEFT adapter fallback. Updated model and tokenizer initialization for improved error handling and device management.
0f06294

cochi1706 commited on

Refactor model loading and input handling in chatbot application. Updated model and tokenizer initialization, improved device management for inputs, and removed unused sliders from the Gradio interface.
f1fc130

cochi1706 commited on

Implement coding assistant chatbot using Qwen3 model with PEFT adapter and Gradio interface
cf9addc

cochi1706 commited on

Duplicate from gradio-templates/chatbot
da4d1f9
verified

cochi1706 pngwn HF Staff commited on