Spaces:
Runtime error
Runtime error
Update app.py
Browse files41 unmodified lines424344454647484950515253545566 unmodified lines12212312412512612712841 unmodified linesmessages=[{"role": "system","content": "Strictly only Classify the following message into one of these categories: create_order, cancel_order, check_order_status, create_invoice, get_invoice_details, create_payment. Respond only with the category name and nothing else , even if its ambgious , give your best classification",},{"role": "user","content": message,},],model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",)return classify.choices[0].message.content.strip()66 unmodified linesmessages=[{"role": "system","content": "Process user query and automated system API response to form a coherent natural reply that will help the user affirm the situation of their request. Your response will be streamed directly to the user. Do not include the fact that you are reading the API response. It should be natural and helpful. Make sure to give the user the relevant IDs and information, and do not talk more than that. Just give information and that's it.",},{"role": "user",41 unmodified lines424344454647484950515253545566 unmodified lines12212312412512612712841 unmodified linesmessages=[{"role": "system","content": "Strictly only Classify the following message into one of these categories: create_order (for creating an order) , cancel_order (for cancelling an order) , check_order_status (for checking order status and details of the order) , create_invoice (create an invoice) , get_invoice_details (get invoice details) , create_payment. Respond only with the category name and nothing else , even if its ambgious , give your best classification",},{"role": "user","content": message,},],model="mistralai/Mixtral-8x7B-Instruct-v0.1",)return classify.choices[0].message.content.strip()66 unmodified linesmessages=[{"role": "system","content": "Process user query and automated system API response to form a coherent natural reply that will help the user affirm the situation of their request. Your response will be streamed directly to the user. Do not include the fact that you are reading the API response. It should be natural and helpful. Make sure to give the user the relevant IDs and information, be sure to include all the information stated in api response dont leave any detail out even if not requested by user.",},{"role": "user",
app.py+3-3