soyleyicicem commited on
Commit
2552d13
·
verified ·
1 Parent(s): 77946a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -241,7 +241,9 @@ def chat(question, manual, history, liked):
241
 
242
  if function_name == 'get_section_content':
243
  addition = get_section_content(str(args['section_title']), str(args['sub_section_title']), str(args['sub_sub_section_title']), content_path=path)
244
-
 
 
245
  conv.append({
246
  "tool_call_id": tool_call.id,
247
  "role": "tool",
 
241
 
242
  if function_name == 'get_section_content':
243
  addition = get_section_content(str(args['section_title']), str(args['sub_section_title']), str(args['sub_sub_section_title']), content_path=path)
244
+ if not addition:
245
+ addition = ' '
246
+
247
  conv.append({
248
  "tool_call_id": tool_call.id,
249
  "role": "tool",