vpcom commited on
Commit
25783c2
·
1 Parent(s): 7f4ea28

fix: stop_sequence renaming; feat: use the right textbox min_width and placeholder

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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=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
- info="...Type something here",
130
- lines=5,
131
- value="",
 
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,