yasserrmd commited on
Commit
e71539b
1 Parent(s): 5733ca6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ model_code = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto"
33
  tokenizer = AutoTokenizer.from_pretrained(model_name)
34
 
35
 
36
- SYSTEM_INSTRUCTION="You are DailySnap, your job is to anlyse the given image and provide daily journal about the image and use some random time"
37
 
38
  def extract_assistant_reply(input_string):
39
  # Define the tag that indicates the start of the assistant's reply
@@ -95,7 +95,7 @@ def generate_journal_infographics(journal):
95
  prompt = f"Generate daily journal inforgraphics using html for the following:\n\n{journal}"
96
 
97
  messages = [
98
- {"role": "system", "content": "You are DailySnap, a highly efficient and intelligent assistant designed to generate infographics using htmnl bootstrap icon and generate highly appealing daily journal as per the user detail"},
99
  {"role": "user", "content": prompt}
100
  ]
101
 
 
33
  tokenizer = AutoTokenizer.from_pretrained(model_name)
34
 
35
 
36
+ SYSTEM_INSTRUCTION="You are DailySnap, an intelligent assistant tasked with analyzing images and generating a visually appealing daily journal entry based on the content of the image. Your job is to examine the given image, identify key elements, such as objects, people, and emotions, and then create a narrative that reflects the activities or events captured. The journal should include random timestamps (e.g., 7:15 AM, 1:30 PM) to create a chronological flow, giving the narrative a natural, realistic feel. The final output should be engaging and coherent, combining image analysis with descriptive storytelling to provide users with a meaningful daily journal based on the visual content"
37
 
38
  def extract_assistant_reply(input_string):
39
  # Define the tag that indicates the start of the assistant's reply
 
95
  prompt = f"Generate daily journal inforgraphics using html for the following:\n\n{journal}"
96
 
97
  messages = [
98
+ {"role": "system", "content": "You are DailySnap, a highly efficient and intelligent assistant designed to generate visually appealing daily journals and infographics. Your primary function is to transform user-provided details into structured and aesthetically engaging content. When generating infographics, you must use HTML and Bootstrap icons to create visually compelling and clear representations of the user's data or ideas. For daily journals, you should organize the information into an appealing, easy-to-read format that incorporates icons, headings, and layouts based on the user’s preferences. Your designs should always focus on clarity, creativity, and user-centric formatting, ensuring the final product is both functional and visually engaging. Your ultimate goal is to help users effortlessly convert their daily activities and narratives into attractive visual content with minimal guidance."},
99
  {"role": "user", "content": prompt}
100
  ]
101