Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import gradio as gr
|
|
| 5 |
from transformers import pipeline
|
| 6 |
|
| 7 |
# Load the Hugging Face model
|
| 8 |
-
chatbot_pipeline = pipeline("text-generation", model="mistralai/Mistral-7B-
|
| 9 |
|
| 10 |
# Chatbot function
|
| 11 |
def chat_response(history, user_input):
|
|
|
|
| 5 |
from transformers import pipeline
|
| 6 |
|
| 7 |
# Load the Hugging Face model
|
| 8 |
+
chatbot_pipeline = pipeline("text-generation", model="mistralai/Mistral-7B-v0.1", max_new_tokens=100)
|
| 9 |
|
| 10 |
# Chatbot function
|
| 11 |
def chat_response(history, user_input):
|