pcuenq HF staff commited on
Commit
f7cdcf4
1 Parent(s): 3aed9a5

Revert infilling change (#10)

Browse files

- Revert infilling change (9066ff3ce3ac85541fa0b50036ca10b84c3982fd)

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def generate(
66
  prefix, suffix = prompt.split(FIM_INDICATOR)
67
  except:
68
  raise ValueError(f"Only one {FIM_INDICATOR} allowed in prompt!")
69
- # prompt = f"{FIM_PREFIX}{prefix}{FIM_SUFFIX}{suffix}{FIM_MIDDLE}"
70
 
71
 
72
  stream = client.generate_stream(prompt, **generate_kwargs)
 
66
  prefix, suffix = prompt.split(FIM_INDICATOR)
67
  except:
68
  raise ValueError(f"Only one {FIM_INDICATOR} allowed in prompt!")
69
+ prompt = f"{FIM_PREFIX}{prefix}{FIM_SUFFIX}{suffix}{FIM_MIDDLE}"
70
 
71
 
72
  stream = client.generate_stream(prompt, **generate_kwargs)