Spaces:
Paused
Paused
remove hist 2
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def generate(
|
|
64 |
#top_k=top_k,
|
65 |
#temperature=temperature,
|
66 |
#num_beams=1,
|
67 |
-
|
68 |
)
|
69 |
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
70 |
t.start()
|
@@ -72,9 +72,9 @@ def generate(
|
|
72 |
|
73 |
outputs = []
|
74 |
for text in streamer:
|
75 |
-
print(text
|
76 |
outputs.append(text)
|
77 |
-
yield "".join(outputs)
|
78 |
|
79 |
|
80 |
chat_interface = gr.ChatInterface(
|
|
|
64 |
#top_k=top_k,
|
65 |
#temperature=temperature,
|
66 |
#num_beams=1,
|
67 |
+
repetition_penalty=0.0,#repetition_penalty,
|
68 |
)
|
69 |
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
70 |
t.start()
|
|
|
72 |
|
73 |
outputs = []
|
74 |
for text in streamer:
|
75 |
+
print(text, end="")
|
76 |
outputs.append(text)
|
77 |
+
yield "".join(outputs).replace(history, "")
|
78 |
|
79 |
|
80 |
chat_interface = gr.ChatInterface(
|