adityaiiitr commited on
Commit
0ed421b
·
1 Parent(s): e827602

prompt edited

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -49,7 +49,7 @@ async def scrape_visible_text(url):
49
 
50
  # Function to structure data using Google's Gemini model
51
  def structure_data(text, college_name):
52
- prompt = f"Convert the following unstructured text into a well-written and comprehensive structured form with titles and content containing all relevant data. The response should be a detailed paragraph mentioning everything about the college named '{college_name}', ensuring no important information is missed. Include details such as connectivity, placement, nearby colleges, infrastructure, courses, branches, students, festivals, clubs, reviews, Q&A, and any other college-related parameters available in the text. Provide the response text with no fromatting!\n{text}"
53
  model = genai.GenerativeModel("gemini-1.5-pro")
54
  response = model.generate_content(prompt)
55
  return response.text.strip()
 
49
 
50
  # Function to structure data using Google's Gemini model
51
  def structure_data(text, college_name):
52
+ prompt = f"Convert the following unstructured text into a well-written and comprehensive structured form with titles and content containing all relevant data. The response should be a detailed paragraph mentioning everything about the college named '{college_name}', ensuring no important information is missed. Include details such as connectivity, placement, nearby colleges, infrastructure, courses, branches, students, festivals, clubs, reviews, Q&A, and any other college-related parameters available in the text. Provide the response text with no fromatting! --- \n{text} ---. Use only the text between the '---' markers as input source text. If information is not available about any specific thing dont mention it."
53
  model = genai.GenerativeModel("gemini-1.5-pro")
54
  response = model.generate_content(prompt)
55
  return response.text.strip()