warshanks commited on
Commit
9e94863
·
verified ·
1 Parent(s): b5698dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -202,10 +202,9 @@ def run(message: dict, history: list[dict], system_prompt: str = "", max_new_tok
202
  inputs,
203
  max_new_tokens=max_new_tokens,
204
  streamer=streamer,
205
- temperature=1.0,
206
- top_p=0.95,
207
- top_k=64,
208
- min_p=0.0,
209
  )
210
  t = Thread(target=model.generate, kwargs=generate_kwargs)
211
  t.start()
@@ -217,8 +216,8 @@ def run(message: dict, history: list[dict], system_prompt: str = "", max_new_tok
217
 
218
 
219
  DESCRIPTION = """\
220
- This is a demo of MedGemma, a Gemma 3 variant trained for performance on medical text and image comprehension.
221
- You can upload images, interleaved images and videos. Note that video input only supports single-turn conversation and mp4 input.
222
  """
223
 
224
  demo = gr.ChatInterface(
@@ -232,7 +231,7 @@ demo = gr.ChatInterface(
232
  gr.Slider(label="Max New Tokens", minimum=100, maximum=8192, step=10, value=2048),
233
  ],
234
  stop_btn=False,
235
- title="MedGemma 4B IT",
236
  description=DESCRIPTION,
237
  run_examples_on_click=False,
238
  cache_examples=False,
 
202
  inputs,
203
  max_new_tokens=max_new_tokens,
204
  streamer=streamer,
205
+ temperature=0.7,
206
+ top_p=1,
207
+ repetition_penalty=1,
 
208
  )
209
  t = Thread(target=model.generate, kwargs=generate_kwargs)
210
  t.start()
 
216
 
217
 
218
  DESCRIPTION = """\
219
+ This is a demo of Lingshu 32B, a multimodal model trained for performance on medical text and image comprehension.
220
+ Lingshu supports more than 12 medical imaging modalities, including X-Ray, CT Scan, MRI, Microscopy, Ultrasound, Histopathology, Dermoscopy, Fundus, OCT, Digital Photography, Endoscopy, and PET.
221
  """
222
 
223
  demo = gr.ChatInterface(
 
231
  gr.Slider(label="Max New Tokens", minimum=100, maximum=8192, step=10, value=2048),
232
  ],
233
  stop_btn=False,
234
+ title="Lingshu 32B",
235
  description=DESCRIPTION,
236
  run_examples_on_click=False,
237
  cache_examples=False,