CosmoAI commited on
Commit
d373e61
·
1 Parent(s): 48a29d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ model = pipeline(model='google/flan-t5-base')
8
  # Define the chatbot function
9
  def chatbot(input_text):
10
  # Generate a response from the Hugging Face model
11
- response = model(input_text, max_length=50, do_sample=True)[0]['generated_text'].strip()
12
 
13
  # Return the bot response
14
  return response
 
8
  # Define the chatbot function
9
  def chatbot(input_text):
10
  # Generate a response from the Hugging Face model
11
+ response = model(input_text, max_length=250, do_sample=True)[0]['generated_text'].strip()
12
 
13
  # Return the bot response
14
  return response