Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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=
|
| 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)
|