Spaces:
Sleeping
Sleeping
TahaFawzyElshrif commited on
Commit ·
4046196
1
Parent(s): d7f5585
debug
Browse files- Consumer.py +1 -2
Consumer.py
CHANGED
|
@@ -28,10 +28,9 @@ def model_call(request):
|
|
| 28 |
"question": request['prompt'],
|
| 29 |
"memory": request['memory']
|
| 30 |
}
|
| 31 |
-
request['ht_token'] ="hf_" + request['ht_token']
|
| 32 |
|
| 33 |
print(f"MODEL CALL WITH STATE {state} and PROMPT {request['prompt']} and MEMORY {request['memory']} and HT_TOKEN {request['ht_token']} and USER_EMAIL {request['user_email']} and USER_NAME {request['user_name']}")
|
| 34 |
-
|
| 35 |
|
| 36 |
#print(f"ANSWER {answer}")
|
| 37 |
# drop unserlizable keys
|
|
|
|
| 28 |
"question": request['prompt'],
|
| 29 |
"memory": request['memory']
|
| 30 |
}
|
|
|
|
| 31 |
|
| 32 |
print(f"MODEL CALL WITH STATE {state} and PROMPT {request['prompt']} and MEMORY {request['memory']} and HT_TOKEN {request['ht_token']} and USER_EMAIL {request['user_email']} and USER_NAME {request['user_name']}")
|
| 33 |
+
answer = get_response(request['prompt'], request['memory'],request['ht_token'],state,request['user_email'],request['user_name'])
|
| 34 |
|
| 35 |
#print(f"ANSWER {answer}")
|
| 36 |
# drop unserlizable keys
|