MilanM commited on
Commit
2268215
·
verified ·
1 Parent(s): 6fec00e

Update app_v3.py

Browse files
Files changed (1) hide show
  1. app_v3.py +4 -0
app_v3.py CHANGED
@@ -271,6 +271,8 @@ def _(mo, prompt_editor, template_selector):
271
 
272
  @app.cell
273
  def _(mo, prompt_editor):
 
 
274
  if prompt_editor.value['editor']:
275
  prompt_printout = mo.md(f"**Current prompt template:**\n\n {prompt_editor.value['editor']}")
276
  else:
@@ -282,6 +284,8 @@ def _(mo, prompt_editor):
282
 
283
  @app.cell
284
  def _(inf_model, params, process_with_llm, prompt_editor):
 
 
285
  if prompt_editor.value['editor']:
286
  prompt_response = process_with_llm(inf_model, prompt_template=prompt_editor.value['editor'], params=params, return_full_json_response=False)
287
  prompt_response_full = process_with_llm(inf_model, prompt_template=prompt_editor.value['editor'], params=params, return_full_json_response=True)
 
271
 
272
  @app.cell
273
  def _(mo, prompt_editor):
274
+ _ = prompt_editor.value['editor']
275
+
276
  if prompt_editor.value['editor']:
277
  prompt_printout = mo.md(f"**Current prompt template:**\n\n {prompt_editor.value['editor']}")
278
  else:
 
284
 
285
  @app.cell
286
  def _(inf_model, params, process_with_llm, prompt_editor):
287
+ _ = prompt_editor.value['editor']
288
+
289
  if prompt_editor.value['editor']:
290
  prompt_response = process_with_llm(inf_model, prompt_template=prompt_editor.value['editor'], params=params, return_full_json_response=False)
291
  prompt_response_full = process_with_llm(inf_model, prompt_template=prompt_editor.value['editor'], params=params, return_full_json_response=True)