Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def gradio(model, tokenizer):
|
|
67 |
temperature=temperature,
|
68 |
repetition_penalty=repetition_penalty,
|
69 |
early_stopping=True,
|
70 |
-
|
71 |
)
|
72 |
output = beam_output[0][prompt_length:]
|
73 |
|
@@ -127,7 +127,6 @@ def gradio(model, tokenizer):
|
|
127 |
gr.ChatInterface(
|
128 |
response,
|
129 |
chatbot=bot,
|
130 |
-
fill_vertical_space=True,
|
131 |
additional_inputs=[
|
132 |
top_k,
|
133 |
top_p,
|
|
|
67 |
temperature=temperature,
|
68 |
repetition_penalty=repetition_penalty,
|
69 |
early_stopping=True,
|
70 |
+
do_sample=True
|
71 |
)
|
72 |
output = beam_output[0][prompt_length:]
|
73 |
|
|
|
127 |
gr.ChatInterface(
|
128 |
response,
|
129 |
chatbot=bot,
|
|
|
130 |
additional_inputs=[
|
131 |
top_k,
|
132 |
top_p,
|