conzchunglfxsdu commited on
Commit
0ca76d7
·
verified ·
1 Parent(s): f3f2264

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -26,10 +26,6 @@ sos_token = "<|im_start|>"
26
  eos_token = "<|im_end|>"
27
 
28
 
29
-
30
- ASPECT_RATIOS = [(1, 1), (1, 4), (4, 1)]
31
- RESOLUTIONS = [(672, 672), (336, 1344), (1344, 336)]
32
-
33
  # Function to resize image
34
  def resize_image(image_path: str, max_width: int = 300, max_height: int = 300) -> str:
35
  img = Image.open(image_path)
@@ -147,7 +143,7 @@ def submit_reason_only(doc_ids, reason, selected_index, history):
147
  PLACEHOLDER = """
148
  <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
149
  <img src="https://lfxdigital.com/wp-content/uploads/2021/02/LFX_Logo_Final-01.png" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55;">
150
- <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">LLaVA NeXT 34B-ft-v2 LFX</h1>
151
  <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">This multimodal LLM is finetuned by LFX</p>
152
  </div>
153
  """
 
26
  eos_token = "<|im_end|>"
27
 
28
 
 
 
 
 
29
  # Function to resize image
30
  def resize_image(image_path: str, max_width: int = 300, max_height: int = 300) -> str:
31
  img = Image.open(image_path)
 
143
  PLACEHOLDER = """
144
  <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
145
  <img src="https://lfxdigital.com/wp-content/uploads/2021/02/LFX_Logo_Final-01.png" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55;">
146
+ <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">LLaVA NeXT 34B-ft-v3 LFX</h1>
147
  <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">This multimodal LLM is finetuned by LFX</p>
148
  </div>
149
  """