Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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",
|