sifujohn commited on
Commit
203beb0
1 Parent(s): 1f01a06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -30,14 +30,6 @@ def generate(
30
  seed=42,
31
  )
32
 
33
- formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
34
- stream = text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
35
- output = ""
36
-
37
- for response in stream:
38
- output += response.token.text
39
- yield output
40
- return output
41
  additional_inputs=[
42
  gr.Textbox(
43
  label="System Prompt",
 
30
  seed=42,
31
  )
32
 
 
 
 
 
 
 
 
 
33
  additional_inputs=[
34
  gr.Textbox(
35
  label="System Prompt",