Spaces:
Sleeping
Sleeping
James MacQuillan
commited on
Commit
·
9c9e84d
1
Parent(s):
31ee2c5
push
Browse files
app.py
CHANGED
@@ -418,7 +418,7 @@ def detect_data_request(user_input, history):
|
|
418 |
if requestfromfp == []:
|
419 |
history.append(("You: " + user_input, "IM.B: " + 'sorry the response was empty'))
|
420 |
else:
|
421 |
-
history.append(("You: " + user_input, "IM.B: " + 'there was data in the response but for some reason we couldnt parse it'))
|
422 |
else:
|
423 |
# If no data endpoint exists, switch to scraping a valid webpage
|
424 |
response = client.chat_completion(
|
|
|
418 |
if requestfromfp == []:
|
419 |
history.append(("You: " + user_input, "IM.B: " + 'sorry the response was empty'))
|
420 |
else:
|
421 |
+
history.append(("You: " + user_input, "IM.B: " + f'there was data in the response but for some reason we couldnt parse it {jsoned_data}'))
|
422 |
else:
|
423 |
# If no data endpoint exists, switch to scraping a valid webpage
|
424 |
response = client.chat_completion(
|