Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +0 -14
requirements.txt
CHANGED
|
@@ -4,17 +4,3 @@ transformers
|
|
| 4 |
accelerate
|
| 5 |
spaces
|
| 6 |
numpy
|
| 7 |
-
1. **GPU Optimization**: Uses `@spaces.GPU` decorator for optimal deployment performance
|
| 8 |
-
2. **Chat Interface**: Clean, modern chat UI with examples and controls
|
| 9 |
-
3. **Model Management**: Efficient model loading with global state management
|
| 10 |
-
4. **Error Handling**: Graceful error handling with user-friendly messages
|
| 11 |
-
5. **Attribution**: "Built with anycoder" prominently displayed in the header
|
| 12 |
-
6. **Configuration**: Professional settings including temperature control and token limits
|
| 13 |
-
Uses `AutoTokenizer.apply_chat_template()` for proper conversation formatting
|
| 14 |
-
Implements proper prompt engineering with system messages
|
| 15 |
-
Handles conversation history for contextual responses
|
| 16 |
-
Optimized for both GPU and CPU deployment
|
| 17 |
-
Includes model information and usage tips
|
| 18 |
-
1. Install dependencies: `pip install -r requirements.txt`
|
| 19 |
-
2. Run the app: `python app.py`
|
| 20 |
-
3. Access at `http://localhost:7860`
|
|
|
|
| 4 |
accelerate
|
| 5 |
spaces
|
| 6 |
numpy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|