Commit ·
0d028f2
1
Parent(s): abd69e3
Update app.py
Browse files79 unmodified lines8081828384858 unmodified lines94959697989979 unmodified lines)output = output['choices'][0]['message']['content']prompt = "Perform the following actions on given text: 1. Replace NHS number and Case note number and Date of Birth with term [redacted] 2. DO NOT REPLACE ANY MEDICAL MEASUREMENTS 3. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]"output = model.create_chat_completion(messages=[8 unmodified lines)output = output['choices'][0]['message']['content']return output@spaces.GPU(duration=120)79 unmodified lines808182838485868788898 unmodified lines989910010110210310410510610779 unmodified lines)output = output['choices'][0]['message']['content']print(prompt)print(output)print('-------------------------------------------------------')prompt = "Perform the following actions on given text: 1. Replace NHS number and Case note number and Date of Birth with term [redacted] 2. DO NOT REPLACE ANY MEDICAL MEASUREMENTS 3. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]"output = model.create_chat_completion(messages=[8 unmodified lines)output = output['choices'][0]['message']['content']print(prompt)print(output)print('-------------------------------------------------------')return output@spaces.GPU(duration=120)
app.py+8