Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def code_generation(prompt: str) -> str:
|
|
| 43 |
str: The HTML-styled generated code.
|
| 44 |
"""
|
| 45 |
completion = pipe(prompt)[0]['generated_text']
|
| 46 |
-
return completion
|
| 47 |
|
| 48 |
|
| 49 |
demo = gr.Blocks(
|
|
|
|
| 43 |
str: The HTML-styled generated code.
|
| 44 |
"""
|
| 45 |
completion = pipe(prompt)[0]['generated_text']
|
| 46 |
+
return completion.replace("<|endoftext|>", "")
|
| 47 |
|
| 48 |
|
| 49 |
demo = gr.Blocks(
|