Spaces:
Runtime error
Runtime error
Alexander Hux
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ chatbot = pipeline("text-generation", model=model_name, use_auth_token="ZEN")
|
|
| 7 |
|
| 8 |
def chat_with_bot(user_input):
|
| 9 |
# Generating a response from the chatbot model
|
| 10 |
-
responses = chatbot(user_input, max_length=
|
| 11 |
return responses[0]["generated_text"]
|
| 12 |
|
| 13 |
# Setting up the Gradio interface
|
|
|
|
| 7 |
|
| 8 |
def chat_with_bot(user_input):
|
| 9 |
# Generating a response from the chatbot model
|
| 10 |
+
responses = chatbot(user_input, max_length=800, num_return_sequences=1)
|
| 11 |
return responses[0]["generated_text"]
|
| 12 |
|
| 13 |
# Setting up the Gradio interface
|