jmcinern commited on
Commit
78a0e5d
·
verified ·
1 Parent(s): 3b1fdb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,7 +77,7 @@ class ChatBot:
77
  with torch.no_grad():
78
  outputs = self.model.generate(
79
  **inputs,
80
- max_new_tokens=1024,
81
  temperature=0.7,
82
  do_sample=True,
83
  pad_token_id=self.tokenizer.eos_token_id,
@@ -99,7 +99,7 @@ bot = ChatBot()
99
  # Create interface
100
  with gr.Blocks() as demo:
101
  gr.HTML('<h1 style="margin:0;">A Bilingual Irish-English LLM — Developed by Abair.ie</h1>')
102
- chatbot = gr.Chatbot(height=500)
103
  msg = gr.Textbox(placeholder="Type your message...", show_label=False)
104
 
105
  msg.submit(bot.chat, [msg, chatbot], [chatbot]).then(lambda: "", outputs=msg)
 
77
  with torch.no_grad():
78
  outputs = self.model.generate(
79
  **inputs,
80
+ max_new_tokens=2048,
81
  temperature=0.7,
82
  do_sample=True,
83
  pad_token_id=self.tokenizer.eos_token_id,
 
99
  # Create interface
100
  with gr.Blocks() as demo:
101
  gr.HTML('<h1 style="margin:0;">A Bilingual Irish-English LLM — Developed by Abair.ie</h1>')
102
+ chatbot = gr.Chatbot(height=400)
103
  msg = gr.Textbox(placeholder="Type your message...", show_label=False)
104
 
105
  msg.submit(bot.chat, [msg, chatbot], [chatbot]).then(lambda: "", outputs=msg)