baohuynhbk14 commited on
Commit
38dec67
·
1 Parent(s): ec04f8e

Update README.md and app.py for demo enhancements and theme changes

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. app.py +6 -6
  3. samples/5.jpeg +0 -0
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: Vintern-1B-3 5-Demo
3
- emoji: ⚡🔥⚡
4
- colorFrom: green
5
- colorTo: red
6
  sdk: gradio
7
  sdk_version: 5.12.0
8
  app_file: app.py
 
1
  ---
2
  title: Vintern-1B-3 5-Demo
3
+ emoji: 🥶❄️🥶
4
+ colorFrom: white
5
+ colorTo: blue
6
  sdk: gradio
7
  sdk_version: 5.12.0
8
  app_file: app.py
app.py CHANGED
@@ -75,7 +75,7 @@ def vote_last_response(state, liked, request: gr.Request):
75
  conv_data = {
76
  "tstamp": round(time.time(), 4),
77
  "like": liked,
78
- "model": 'Vintern-1B-v3',
79
  "state": state.dict(),
80
  "ip": request.client.host,
81
  }
@@ -106,7 +106,7 @@ def vote_selected_response(
106
  "tstamp": round(time.time(), 4),
107
  "like": data.liked,
108
  "index": data.index,
109
- "model": 'Vintern-1B-v3',
110
  "state": state.dict(),
111
  "ip": request.client.host,
112
  }
@@ -334,8 +334,8 @@ def ai_bot(
334
  title_html = """
335
  <div style="text-align: center;">
336
  <img src="https://lh3.googleusercontent.com/pw/AP1GczMmW-aFQ4dNaR_LCAllh4UZLLx9fTZ1ITHeGVMWx-1bwlIWz4VsWJSGb3_9C7CQfvboqJH41y2Sbc5ToC9ZmKeV4-buf_DEevIMU0HtaLWgHAPOqBiIbG6LaE8CvDqniLZzvB9UX8TR_-YgvYzPFt2z=w1472-h832-s-no-gm?authuser=0" style="height: 90px; width: 95%;">
337
- <p style="font-size: 20px;">🔥Vintern-1B-v3_5🔥</p>
338
- <p style="font-size: 14px;">An Efficient Multimodal Large Language Model for Vietnamese</p>
339
  <a href="https://huggingface.co/papers/2408.12480" style="font-size: 13px;">[📖 Vintern Paper]</a>
340
  <a href="https://huggingface.co/5CD-AI" style="font-size: 13px;">[🤗 Huggingface]</a>
341
  </div>
@@ -426,7 +426,7 @@ def build_demo():
426
 
427
  with gr.Blocks(
428
  title="🔥 Vintern-1B-v3_5-Demo 🔥",
429
- theme='SebastianBravo/simci_css',
430
  css=block_css,
431
  js=js,
432
  ) as demo:
@@ -511,7 +511,7 @@ def build_demo():
511
  [
512
  {
513
  "files": [
514
- "samples/4.jpeg",
515
  ],
516
  "text": "Hãy viết trích xuất nội dung của hoá đơn dạng JSON.",
517
  }
 
75
  conv_data = {
76
  "tstamp": round(time.time(), 4),
77
  "like": liked,
78
+ "model": 'Vintern-1B-v3_5',
79
  "state": state.dict(),
80
  "ip": request.client.host,
81
  }
 
106
  "tstamp": round(time.time(), 4),
107
  "like": data.liked,
108
  "index": data.index,
109
+ "model": 'Vintern-1B-v3_5',
110
  "state": state.dict(),
111
  "ip": request.client.host,
112
  }
 
334
  title_html = """
335
  <div style="text-align: center;">
336
  <img src="https://lh3.googleusercontent.com/pw/AP1GczMmW-aFQ4dNaR_LCAllh4UZLLx9fTZ1ITHeGVMWx-1bwlIWz4VsWJSGb3_9C7CQfvboqJH41y2Sbc5ToC9ZmKeV4-buf_DEevIMU0HtaLWgHAPOqBiIbG6LaE8CvDqniLZzvB9UX8TR_-YgvYzPFt2z=w1472-h832-s-no-gm?authuser=0" style="height: 90px; width: 95%;">
337
+ <p style="font-size: 20px;">❄️Vintern-1B-v3_5❄️</p>
338
+ <p style="font-size: 14px;">An Efficient Multimodal Large Language Model for Vietnamese🇻🇳</p>
339
  <a href="https://huggingface.co/papers/2408.12480" style="font-size: 13px;">[📖 Vintern Paper]</a>
340
  <a href="https://huggingface.co/5CD-AI" style="font-size: 13px;">[🤗 Huggingface]</a>
341
  </div>
 
426
 
427
  with gr.Blocks(
428
  title="🔥 Vintern-1B-v3_5-Demo 🔥",
429
+ theme='gr.themes.Ocean()',
430
  css=block_css,
431
  js=js,
432
  ) as demo:
 
511
  [
512
  {
513
  "files": [
514
+ "samples/5.jpeg",
515
  ],
516
  "text": "Hãy viết trích xuất nội dung của hoá đơn dạng JSON.",
517
  }
samples/5.jpeg ADDED