Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from teapotai import TeapotAI, TeapotAISettings
|
|
| 3 |
import hashlib
|
| 4 |
import os
|
| 5 |
import requests
|
|
|
|
| 6 |
|
| 7 |
default_documents = []
|
| 8 |
|
|
@@ -29,6 +30,7 @@ def brave_search(query, count=3):
|
|
| 29 |
|
| 30 |
|
| 31 |
# Function to handle the chat with TeapotAI
|
|
|
|
| 32 |
def handle_chat(user_input, teapot_ai):
|
| 33 |
results = brave_search(user_input)
|
| 34 |
|
|
|
|
| 3 |
import hashlib
|
| 4 |
import os
|
| 5 |
import requests
|
| 6 |
+
from langsmith import traceable
|
| 7 |
|
| 8 |
default_documents = []
|
| 9 |
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
# Function to handle the chat with TeapotAI
|
| 33 |
+
@traceable
|
| 34 |
def handle_chat(user_input, teapot_ai):
|
| 35 |
results = brave_search(user_input)
|
| 36 |
|