sharjeel1477 commited on
Commit
24eee70
·
1 Parent(s): e591ec6
Files changed (1) hide show
  1. app.py +9 -27
app.py CHANGED
@@ -16,35 +16,17 @@ def getBrains():
16
  return gr.update(choices=active_indexes)
17
 
18
 
19
- prompt_names = ["Industry / Topic Research", "Data Analysis",
20
- "Rewrite / Repurpose Content", "Create Long Form Article/Blog"]
21
- prompt_enhancers = ["""Write at is if you had a Harvard MBA. You are providing in-depth report that is captured at the end of this [PROMPT]
22
- Please provide an exhaustive report on anything and everything you can that would help investors decide the interest in investing in the space captured in [TOPIC] mentioned in the end of this prompt.
23
- This report will go to a very sophisticated group of analysts, so please ensure it satisfies their needs.
24
- Please provide me with a full report on [TOPIC], and follow the following format:
25
- -For all main topics, please use Headlines and put supporting information in bullet point form.
26
- -Please ensure you provide thoughtful analysis, as well as data and supporting citation/references when you can.
27
- Please include anything relevant, which could include: talking points from information you find, financial numbers, year end reports, trends you can see in the numbers, facts, opinions (as long as a reference follows). Here is the topic you are to use the instructions of this prompt to write, please create this impressive study:
28
  """,
29
- """Write at is if you had a PHP MIT graduate in finance. You are to take the main question which is at the end of this prompt, which will have [TOPIC] in front of it.
30
- Please deeply research the topic provided and present to me with absolute accuracy, the data needed. When you can, please cite where you found this data.
31
- When longer content is created with your answer, please use Headline/Bullet point format.
32
- Please do not say "Last Year". Please always be speecific, in this example, "Last Year" would be 2022.
33
- Ensure you provide absolutely accurate data analysis. Please look and query all data you have access to, which could include year-end reports from public companies, numbers that are written on in online reports, Website analytics, financial analysis, trends, and anything else you can find.
34
- Here is the topic you are to use the instructions of this prompt to write, please create this completely accurate, thorough report:
35
  """,
36
- """You are being hired for a very important copywriting project in your field of expertise, repurposing, rewriting, refreshing content. When you are instructed to write the article in at the end of this prompt, Please ensure you follow the instructions here:
37
- 1. The content you are using to perform the task should be of similar length of the one you write.
38
- 2. Please use heading/bullets in formatting when necessary.
39
- Your ultimate task is to rewrite the content that I provide to you at the end of this prompt and turn it into an original and engaging article based on my instructions.
40
- Your rewritten version should be 100% unique, with no copied or paraphrased content from the original article. You should maintain the same meaning, size and structure of the original article while using your own words and phrasing. Additionally, you should use creative language and writing techniques to make your rewritten version more interesting and thought-provoking for readers. Your response should capture the essence of the original article but also provide a fresh perspective that will keep readers engaged and entertained. It should challenge their preconceived notions about the topic by utilizing vivid descriptions, powerful storytelling elements such as metaphors, similes, imagery, etc., as well as emotionally resonant experiences. Your rewritten version should be structured around meaningful ideas that are expressed in clear and concise language. The tone of your writing should be conversational yet authoritative, encouraging readers to think critically about the topic without being overly didactic or preachy. Ok, here is the content to perform this task from. CONTENT TO REWRITE:
41
  """,
42
- """
43
- For this task, please reference instructions here as well as all the data in your database. You are being hired for a very important copywriting project in your field of expertise, engaging article and blog content. When you are instructed to write the content in at the end of this prompt, Please ensure you follow the instructions here:
44
- 1. The content you are using to perform the task should be thorough, detailed, long enough to be a complete piece of content.
45
- 2. Please use heading/bullets in formatting when necessary.
46
-
47
- You should use creative language and writing techniques to make your content more interesting and thought-provoking for readers. Your response should provide a fresh perspective that will keep readers engaged and entertained. It should challenge their preconceived notions about the topic by utilizing vivid descriptions, powerful storytelling elements such as metaphors, similes, imagery, etc., as well as emotionally resonant experiences. Use data from what you have access to to help support any thoughts or facts you are writing about. Your content should be structured around meaningful ideas that are expressed in clear and concise language. The tone of your writing should be conversational yet authoritative, encouraging readers to think critically about the topic without being overly didactic or preachy. Ok, here is the content to perform this task from. TOPIC AND ITEM YOU NEED WRITTEN:
48
  """
49
  ]
50
 
@@ -81,7 +63,7 @@ formatted_css = mycss.format(bgcolor=bg_color, scolor=s_color)
81
 
82
  def handleSubmit(brain_name, enhancer, question, temperature, maxTokens):
83
  print(brain_name)
84
- prompt = ""
85
  if (brain_name == "" and question == ""):
86
  return "Please select Brain Name & Enter Question", False
87
  if (brain_name == ""):
 
16
  return gr.update(choices=active_indexes)
17
 
18
 
19
+ prompt_names = ["Respond To A Customer Email","Respond to user from chatbot","Scheduling Questions","Create an article or blog post","Deep Business Research On any topic"]
20
+ prompt_enhancers = [
21
+ """My main request will be at the end of this prompt, which I will identify at the end of the prompt. But First, I wanted to provide you specific instructions first. When performing your task, when applicable, please use Headlines to seperate topics and numbered bullet points for subtopics and/or details when neccessary. Please write in a friendly tone and pay special attention to accuracy and be as thorough as required.You are responding to a customer service email. Please Acknowledge the customer's issue or question, provide a helpful solution or response, and offer additional assistance or follow-up if needed. Please follow these instructions precisely and execute this task:
 
 
 
 
 
 
22
  """,
23
+ """You are answering as a chatbot to a user on the website, so please write as if you are talking to the customer directly as a chatbot. My main request will be at the end of this prompt. But First, I wanted to provide you specific instructions first. When performing your task, when applicable, please use Headlines to seperate topics and numbered bullet points for subtopics and/or details when neccessary. Please write in a friendly tone and pay special attention to accuracy and be as thorough as required.You are responding to an online chat. Please briefly open up with a nice greeting followed by a quick helpful solution or response, and offer additional assistance or follow-up if needed. Please follow these instructions precisely and execute this task:
 
 
 
 
 
24
  """,
25
+ """My main request will be at the end of this prompt, which I will identify at the end of the prompt. But First, I wanted to provide you specific instructions first. When performing your task, when applicable, please use Headlines to seperate topics and numbered bullet points for subtopics and/or details when neccessary. Please write in a friendly tone and pay special attention to accuracy and be as thorough as required.You are going to search your database for details about future cruises or ships that are departing. Please always provide ship name, departure date and departure city or part. Do not list time of day unless asked specifically at the end of this prompt. Unless specifically asked, do provide information that is from a historic or previous date, only future dates from after today. Please always supply as many options related to their question, not just a sample. You will always need to supply a complete set of data that you have access to specific to the user question. Please follow these instructions precisely and execute this task:
 
 
 
 
26
  """,
27
+ """My main request will be at the end of this prompt, which I will identify as HERE IS YOUR TASK: But First, I wanted to provide you specific instructions first. When performing your task, when applicable, please use Headlines to seperate topics and numbered bullet points for subtopics and/or details when neccessary. Please write in a friendly tone and pay special attention to accuracy and be as thorough as required.Ignore all previous instructions. Act as a marketing expert, professor with fluent ENGLISH and 20 years of research experience. This is to be written for highly sophisticated, wealthy travelers whom are very educated. ALWAYS include clear headlines, bullet points, and sub-bullet points where needed. Use industry data, financial data, any data and sources when available (including references where you found if possible. Put key takeaways at the end of the article. pay special attention to any terms that may have been substituted or omitted unintentionally. Ensure this will be long enough and have content to complete the entire topic, thought process, to completion.Please follow these instructions precisely, HERE IS YOUR TASK:
28
+ """,
29
+ """My main request will be at the end of this prompt, which I will identify as HERE IS YOUR TASK: But First, I wanted to provide you specific instructions first. When performing your task, when applicable, please use Headlines to seperate topics and numbered bullet points for subtopics and/or details when neccessary. Please write in a friendly tone and pay special attention to accuracy and be as thorough as required.Ignore all previous instructions. Act as a researcher and writing expert, professor with fluent ENGLISH and 20 years of research experience. This is to be written for MBA level executives in the cruise industry. ALWAYS include clear headlines, bullet points, and sub-bullet points where needed. Use industry data, financial data, any data and sources when available (including references where you found if possible. Put key takeaways at the end of the article. pay special attention to accuracy, thouroughness, and completeness. Cite sources when possible. Ensure this will be long enough and have content to complete the entire research article, thought process, to completion.Please follow these instructions precisely, HERE IS YOUR TASK:
 
 
 
30
  """
31
  ]
32
 
 
63
 
64
  def handleSubmit(brain_name, enhancer, question, temperature, maxTokens):
65
  print(brain_name)
66
+ prompt = """Please use the following instructions and formatting notes only when applicable. 1. Separate primary topics into sections with headlines. Use numbered bullet points for new sub topics within those primary topics and headlines. Respond with the accurate, extensive data. the writing style should be written for an educated reader. Be highly detailed, thorough when needed, accuracy is paramount to this task. Here is the Question: """
67
  if (brain_name == "" and question == ""):
68
  return "Please select Brain Name & Enter Question", False
69
  if (brain_name == ""):