Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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",
|