baohuynhbk14 commited on
Commit
584ce5d
·
1 Parent(s): f916962

Add sampling parameter to ai_bot function and adjust image dimensions in app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -220,6 +220,7 @@ def predict(message,
220
  def ai_bot(
221
  state,
222
  temperature,
 
223
  top_p,
224
  repetition_penalty,
225
  max_new_tokens,
@@ -275,7 +276,8 @@ def ai_bot(
275
  temperature,
276
  max_new_tokens,
277
  top_p,
278
- repetition_penalty)
 
279
 
280
  # response = "This is a test response"
281
  buffer = ""
@@ -334,7 +336,7 @@ def ai_bot(
334
  # <h1 style="font-size: 28px; font-weight: bold;">Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling</h1>
335
  title_html = """
336
  <div style="text-align: center;">
337
- <img src="https://cdn-uploads.huggingface.co/production/uploads/6336b5c831efcb5647f00170/-G297bBqMzYvTbD6_Bkd9.png" style="height: 90px; width: 95%;">
338
  <p style="font-size: 20px;">❄️Vintern-1B-v3_5❄️</p>
339
  <p style="font-size: 14px;">An Efficient Multimodal Large Language Model for Vietnamese🇻🇳</p>
340
  <a href="https://huggingface.co/papers/2408.12480" style="font-size: 13px;">[📖 Vintern Paper]</a>
 
220
  def ai_bot(
221
  state,
222
  temperature,
223
+ do_sample,
224
  top_p,
225
  repetition_penalty,
226
  max_new_tokens,
 
276
  temperature,
277
  max_new_tokens,
278
  top_p,
279
+ repetition_penalty,
280
+ do_sample)
281
 
282
  # response = "This is a test response"
283
  buffer = ""
 
336
  # <h1 style="font-size: 28px; font-weight: bold;">Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling</h1>
337
  title_html = """
338
  <div style="text-align: center;">
339
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6336b5c831efcb5647f00170/-G297bBqMzYvTbD6_Bkd9.png" style="height: 95px; width: 100%;">
340
  <p style="font-size: 20px;">❄️Vintern-1B-v3_5❄️</p>
341
  <p style="font-size: 14px;">An Efficient Multimodal Large Language Model for Vietnamese🇻🇳</p>
342
  <a href="https://huggingface.co/papers/2408.12480" style="font-size: 13px;">[📖 Vintern Paper]</a>