Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
206 |
-
top_p=
|
207 |
-
|
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
|
221 |
-
|
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="
|
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,
|