Spaces:
Runtime error
Runtime error
Added detoxio obervability
Browse files- app.py +4 -0
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
|
|
1 |
from typing import List
|
2 |
import argparse
|
3 |
from pokebot.rag import RAGApp, AssistantRole
|
|
|
|
|
4 |
|
|
|
5 |
|
6 |
def _read_urls_from_file(filepath):
|
7 |
# If seed is provided, parse and load the URLs in an array
|
|
|
1 |
+
import os
|
2 |
from typing import List
|
3 |
import argparse
|
4 |
from pokebot.rag import RAGApp, AssistantRole
|
5 |
+
from traceloop.sdk import Traceloop
|
6 |
+
from traceloop.sdk.decorators import workflow, task
|
7 |
|
8 |
+
Traceloop.init(app_name="pokebot", disable_batch=False)
|
9 |
|
10 |
def _read_urls_from_file(filepath):
|
11 |
# If seed is provided, parse and load the URLs in an array
|
requirements.txt
CHANGED
@@ -2,3 +2,4 @@
|
|
2 |
detoxio-api-protocolbuffers-python==25.3.0.1.20240401181810+d099bf963023
|
3 |
detoxio_api_grpc_python==1.62.1.1.20240401181810+d099bf963023
|
4 |
pokebot@git+https://git@github.com/safedep/pokebot@v0.3
|
|
|
|
2 |
detoxio-api-protocolbuffers-python==25.3.0.1.20240401181810+d099bf963023
|
3 |
detoxio_api_grpc_python==1.62.1.1.20240401181810+d099bf963023
|
4 |
pokebot@git+https://git@github.com/safedep/pokebot@v0.3
|
5 |
+
traceloop-sdk==0.30.0
|