Spaces:
Runtime error
Runtime error
fix: stop_sequence renaming; feat: use the right textbox min_width and placeholder
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def generate(
|
|
| 53 |
max_new_tokens=max_new_tokens,
|
| 54 |
top_p=top_p,
|
| 55 |
repetition_penalty=repetition_penalty,
|
| 56 |
-
stop_sequences=
|
| 57 |
do_sample=True,
|
| 58 |
#seed=seed,
|
| 59 |
)
|
|
@@ -126,9 +126,10 @@ p {direction: rtl; white-space: pre-line;}
|
|
| 126 |
chatbot = gr.Chatbot(bubble_full_width = False)
|
| 127 |
textbox = gr.Textbox(
|
| 128 |
label="textbox",
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
|
|
|
| 132 |
)
|
| 133 |
chat_interface = gr.ChatInterface(
|
| 134 |
generate,
|
|
|
|
| 53 |
max_new_tokens=max_new_tokens,
|
| 54 |
top_p=top_p,
|
| 55 |
repetition_penalty=repetition_penalty,
|
| 56 |
+
stop_sequences=stop_sequences,
|
| 57 |
do_sample=True,
|
| 58 |
#seed=seed,
|
| 59 |
)
|
|
|
|
| 126 |
chatbot = gr.Chatbot(bubble_full_width = False)
|
| 127 |
textbox = gr.Textbox(
|
| 128 |
label="textbox",
|
| 129 |
+
lines=3,
|
| 130 |
+
min_width=230,
|
| 131 |
+
placeholder="...Type something here",
|
| 132 |
+
rtl=True,
|
| 133 |
)
|
| 134 |
chat_interface = gr.ChatInterface(
|
| 135 |
generate,
|