MVPilgrim commited on
Commit
51e6285
·
1 Parent(s): d1ad2ff
Files changed (1) hide show
  1. semsearchDbgUI.py +3 -2
semsearchDbgUI.py CHANGED
@@ -85,7 +85,7 @@ submitButton = widgets.Button(
85
 
86
 
87
  # Display UI
88
- log.debug("### : ")
89
  display(systemTextArea)
90
  display(userTextArea)
91
  display(ragPromptTextArea)
@@ -112,7 +112,7 @@ def runLLM(prompt):
112
  return(result)
113
 
114
  def setPrompt(pprompt,ragFlag):
115
- print("\n### setPrompt() entered. ragFlag: ",ragFlag)
116
  if ragFlag:
117
  ragPrompt = getRagData(pprompt)
118
  userPrompt = pprompt + "\n" + ragPrompt
@@ -136,6 +136,7 @@ def on_submitButton_clicked(b):
136
  log.debug("### prompt: " + prompt)
137
  runLLM(prompt)
138
 
 
139
  submitButton.on_click(on_submitButton_clicked)
140
  display(output_widget)
141
 
 
85
 
86
 
87
  # Display UI
88
+ logger.debug("### Before displaying UI: ")
89
  display(systemTextArea)
90
  display(userTextArea)
91
  display(ragPromptTextArea)
 
112
  return(result)
113
 
114
  def setPrompt(pprompt,ragFlag):
115
+ logger.info("\n### setPrompt() entered. ragFlag: ",ragFlag)
116
  if ragFlag:
117
  ragPrompt = getRagData(pprompt)
118
  userPrompt = pprompt + "\n" + ragPrompt
 
136
  log.debug("### prompt: " + prompt)
137
  runLLM(prompt)
138
 
139
+ logger.info("\n### Before calling submitButton.on_click().")
140
  submitButton.on_click(on_submitButton_clicked)
141
  display(output_widget)
142