Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def text_generate(prompt):
|
|
57 |
print(f"output is : {output}") #{output}")
|
58 |
output_tmp = output[0]['generated_text']
|
59 |
print(f"Bloom response without splits is: {output_tmp}")
|
60 |
-
solution = output[0]['generated_text'].split("
|
61 |
print(f"Final response after splits is: {solution}")
|
62 |
#if "\n\n" not in output_tmp:
|
63 |
# if output_tmp.find('.') != -1:
|
|
|
57 |
print(f"output is : {output}") #{output}")
|
58 |
output_tmp = output[0]['generated_text']
|
59 |
print(f"Bloom response without splits is: {output_tmp}")
|
60 |
+
solution = output_tmp.split("Q:")[0] #output[0]['generated_text'].split("Q:")[0] # +"."
|
61 |
print(f"Final response after splits is: {solution}")
|
62 |
#if "\n\n" not in output_tmp:
|
63 |
# if output_tmp.find('.') != -1:
|