Spaces:
Sleeping
Sleeping
Commit
·
cb932f2
1
Parent(s):
85338db
prompt updated
Browse files
main.py
CHANGED
@@ -33,7 +33,7 @@ async def scrape_visible_text(url):
|
|
33 |
|
34 |
# Function to structure data using Google's Gemini model
|
35 |
def structure_data(text, college_name):
|
36 |
-
prompt = f"Convert the following unstructured text into a structured form with
|
37 |
model = genai.GenerativeModel("gemini-1.5-pro")
|
38 |
response = model.generate_content(prompt)
|
39 |
return response.text.strip()
|
|
|
33 |
|
34 |
# Function to structure data using Google's Gemini model
|
35 |
def structure_data(text, college_name):
|
36 |
+
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}"
|
37 |
model = genai.GenerativeModel("gemini-1.5-pro")
|
38 |
response = model.generate_content(prompt)
|
39 |
return response.text.strip()
|