Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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":
|
|
|
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}
|