Spaces:
Runtime error
Runtime error
zetavg
commited on
update ui
Browse files
llama_lora/ui/inference_ui.py
CHANGED
@@ -256,7 +256,7 @@ def handle_prompt_template_change(prompt_template, lora_model):
|
|
256 |
model_prompt_template = lora_mode_info.get("prompt_template")
|
257 |
if model_prompt_template and model_prompt_template != prompt_template:
|
258 |
model_prompt_template_message_update = gr.Markdown.update(
|
259 |
-
f"
|
260 |
|
261 |
return [model_prompt_template_message_update] + gr_updates
|
262 |
|
|
|
256 |
model_prompt_template = lora_mode_info.get("prompt_template")
|
257 |
if model_prompt_template and model_prompt_template != prompt_template:
|
258 |
model_prompt_template_message_update = gr.Markdown.update(
|
259 |
+
f"This model was trained with prompt template `{model_prompt_template}`.", visible=True)
|
260 |
|
261 |
return [model_prompt_template_message_update] + gr_updates
|
262 |
|