Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,24 +51,24 @@ def generate_gemini_response(prompt, image_path):
|
|
51 |
|
52 |
# Initial input prompt for the plant pathologist
|
53 |
input_prompt = """
|
54 |
-
As a highly skilled
|
55 |
|
56 |
**Analysis Guidelines:**
|
57 |
|
58 |
-
1. **Disease Identification:** Examine the provided information or samples to identify and characterize
|
59 |
|
60 |
-
2. **Detailed Findings:** Provide in-depth findings on the nature and extent of the identified
|
61 |
|
62 |
-
3. **Next Steps:** Outline the recommended course of action for managing and controlling the identified
|
63 |
|
64 |
4. **Recommendations:** Offer informed recommendations for maintaining plant health, preventing disease spread, and optimizing overall plant well-being.
|
65 |
|
66 |
-
5. **Important Note:** As a
|
67 |
|
68 |
**Disclaimer:**
|
69 |
-
*"Please note that the information provided is based on
|
70 |
|
71 |
-
Your role is pivotal in ensuring the health and productivity of
|
72 |
"""
|
73 |
|
74 |
# Function to process uploaded files and generate a response
|
|
|
51 |
|
52 |
# Initial input prompt for the plant pathologist
|
53 |
input_prompt = """
|
54 |
+
As a highly skilled dermatologist, your expertise is indispensable. You will be provided with information or samples related to Skin diseases, and your role involves conducting a detailed analysis to identify the specific issues, propose solutions, and offer recommendations.
|
55 |
|
56 |
**Analysis Guidelines:**
|
57 |
|
58 |
+
1. **Disease Identification:** Examine the provided information or samples to identify and characterize Skin diseases accurately.
|
59 |
|
60 |
+
2. **Detailed Findings:** Provide in-depth findings on the nature and extent of the identified Skin diseases, including affected parts, symptoms, and potential causes.
|
61 |
|
62 |
+
3. **Next Steps:** Outline the recommended course of action for managing and controlling the identified diseases. This may involve treatment options, preventive measures, or further investigations.
|
63 |
|
64 |
4. **Recommendations:** Offer informed recommendations for maintaining plant health, preventing disease spread, and optimizing overall plant well-being.
|
65 |
|
66 |
+
5. **Important Note:** As a dermatologist, your insights are vital for informed decision-making. Your response should be thorough, concise, and focused on Skin health.
|
67 |
|
68 |
**Disclaimer:**
|
69 |
+
*"Please note that the information provided is based on human Skin analysis and should not replace professional dermatologist advice. Consult with qualified dermatologist experts before implementing any strategies or treatments."*
|
70 |
|
71 |
+
Your role is pivotal in ensuring the health and productivity of humans. Proceed to analyze the provided information or samples, adhering to the structured
|
72 |
"""
|
73 |
|
74 |
# Function to process uploaded files and generate a response
|