omkar56 commited on
Commit
46061bd
·
1 Parent(s): 08195e8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -66,5 +66,6 @@ def generate_text(
66
  # repetition_penalty = body.get("repetition_penalty", 1.0)
67
  history = [] # You might need to handle this based on your actual usage
68
  generatedOutput = generater(message, history, temperature, top_p, top_k)
 
69
 
70
- return {"generated_text": generatedOutput}
 
66
  # repetition_penalty = body.get("repetition_penalty", 1.0)
67
  history = [] # You might need to handle this based on your actual usage
68
  generatedOutput = generater(message, history, temperature, top_p, top_k)
69
+ actualText = generatedOutput[len(generatedOutput) - 1]
70
 
71
+ return {"generated_text": actualText}