harpreetsahota commited on
Commit
fb520fb
β€’
1 Parent(s): f590120

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(