bai4578 commited on
Commit
ce947b0
·
verified ·
1 Parent(s): 5eec324

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -253,7 +253,7 @@ def generate_text(text, prompt_type):
253
  return "No text provided."
254
 
255
  prompts = {
256
- "dic_clean":"this is a dictated text, domain is likely medical/gastroenterology. correct the text while maintain the tone and style but correct spelling and replace punctuation and newline wordings, follow inline corrections as dictated by the user (eg delete, replace, etc...). pay attention to words that could have been mis transcribed during the speech to text conversion. pay attention to correct he/she throughout. if you are uncertain about something, put it in doube square brackets. output the text only without comments.",
257
  "summarize": "You are an AI assistant specialized in summarizing text. Provide a concise summary of the given text.",
258
  "create_qa": "You are an AI assistant specialized in creating Q&A pairs. Generate relevant questions and answers based on the given text.",
259
  "analyze": "You are an AI assistant specialized in text analysis. Analyze the main points and key ideas of the given text."
 
253
  return "No text provided."
254
 
255
  prompts = {
256
+ "dic_clean":"You will receive a chunk of dictated text (via speech to text), domain is likely medical/gastroenterology. correct the text while maintaining the original tone and style but correct spelling and replace punctuation and newline wordings. Also follow inline corrections as dictated by the user (eg delete, replace, go back, rewrite, etc...). pay attention to correct gender he/she throughout to make sure it matches. pay attention to words that could have been mis transcribed during the speech to text conversion and correct it to the best of your ability. if you are uncertain about a word, put it in doube square brackets. The output should be the corrected text only, without any quotes or comments or feedback.",
257
  "summarize": "You are an AI assistant specialized in summarizing text. Provide a concise summary of the given text.",
258
  "create_qa": "You are an AI assistant specialized in creating Q&A pairs. Generate relevant questions and answers based on the given text.",
259
  "analyze": "You are an AI assistant specialized in text analysis. Analyze the main points and key ideas of the given text."