Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -150,8 +150,8 @@ def run_gpt(
|
|
150 |
timestamp=timestamp,
|
151 |
purpose="Compile the provided data and complete the users task"
|
152 |
) + prompt_template.format(**prompt_kwargs)
|
153 |
-
if VERBOSE:
|
154 |
-
|
155 |
|
156 |
|
157 |
#formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
@@ -242,7 +242,7 @@ def compress_data_og(c, instruct, history):
|
|
242 |
direction=instruct,
|
243 |
knowledge=new_history,
|
244 |
history=hist,
|
245 |
-
)
|
246 |
|
247 |
new_history = resp
|
248 |
print (resp)
|
@@ -366,6 +366,7 @@ def summarize(inp,history,report_check,chart_check,data=None,files=None,url=None
|
|
366 |
else:
|
367 |
rawp = out
|
368 |
if chart_check:
|
|
|
369 |
error_box = get_chart(str(rawp))
|
370 |
|
371 |
else:
|
|
|
150 |
timestamp=timestamp,
|
151 |
purpose="Compile the provided data and complete the users task"
|
152 |
) + prompt_template.format(**prompt_kwargs)
|
153 |
+
#if VERBOSE:
|
154 |
+
print(LOG_PROMPT.format(content))
|
155 |
|
156 |
|
157 |
#formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
|
|
242 |
direction=instruct,
|
243 |
knowledge=new_history,
|
244 |
history=hist,
|
245 |
+
).strip("\n")
|
246 |
|
247 |
new_history = resp
|
248 |
print (resp)
|
|
|
366 |
else:
|
367 |
rawp = out
|
368 |
if chart_check:
|
369 |
+
print (f"making chart from ::: {rawp}")
|
370 |
error_box = get_chart(str(rawp))
|
371 |
|
372 |
else:
|