Spaces:
Running
Running
Add user id
Browse files
main.py
CHANGED
@@ -157,6 +157,7 @@ expense_keywords = [
|
|
157 |
|
158 |
class TextInput(BaseModel):
|
159 |
text: str
|
|
|
160 |
|
161 |
# Function to detect popular store categories in the text
|
162 |
def detect_store_category(text: str):
|
@@ -684,7 +685,7 @@ async def analyze(input: TextInput):
|
|
684 |
|
685 |
result = {
|
686 |
"uuid": str(uuid.uuid4()), # Unique identifier for the request
|
687 |
-
"user_id":
|
688 |
"raw_text": text,
|
689 |
"word_count": meta["word_count"],
|
690 |
"day_of_week": meta["day_of_week"],
|
|
|
157 |
|
158 |
class TextInput(BaseModel):
|
159 |
text: str
|
160 |
+
user_id: str
|
161 |
|
162 |
# Function to detect popular store categories in the text
|
163 |
def detect_store_category(text: str):
|
|
|
685 |
|
686 |
result = {
|
687 |
"uuid": str(uuid.uuid4()), # Unique identifier for the request
|
688 |
+
"user_id": input.user_id, # Unique identifier for the request
|
689 |
"raw_text": text,
|
690 |
"word_count": meta["word_count"],
|
691 |
"day_of_week": meta["day_of_week"],
|