sohug commited on
Commit
7553f81
·
1 Parent(s): 3c07b8f

update sample image

Browse files
Files changed (2) hide show
  1. app.py +5 -4
  2. assets/bdsd.jpg +0 -0
app.py CHANGED
@@ -19,9 +19,10 @@ SYSTEM_INSTRUCTION = (
19
  You are an AI dermatology assistant designed to help patients understand possible skin conditions from images.
20
  Your goal is to offer an informative, empathetic explanation in clear, simple language.
21
  Avoid technical jargon.
22
- keep your answer brief and concise.
23
  No need to give any disclaimer or introduction.
24
- Your response should be in Bengali.
 
25
  """
26
  )
27
 
@@ -108,7 +109,7 @@ def generate_gemini_analysis(image: Image.Image, max_output_tokens=2048, tempera
108
  # Retry logic
109
  for attempt in range(MAX_RETRIES):
110
  try:
111
- yield build_spinner_html("Processing..."), ""
112
  response = requests.post(
113
  f"{API_URL}?key={api_key}",
114
  headers=headers,
@@ -208,7 +209,7 @@ Upload an image of a skin lesion to receive an **AI-powered dermatological resul
208
 
209
  # Working sample image (local file)
210
  gr.Markdown('<p style="font-size:0.9em;margin-top:50px;">📸 Sample Skin Lesion</p>')
211
- gr.Image(value="assets/skin.jpg", show_label=False, interactive=False, height=300)
212
 
213
  # Event binding
214
  analyze_btn.click(
 
19
  You are an AI dermatology assistant designed to help patients understand possible skin conditions from images.
20
  Your goal is to offer an informative, empathetic explanation in clear, simple language.
21
  Avoid technical jargon.
22
+ Keep your answer brief and concise.
23
  No need to give any disclaimer or introduction.
24
+ Generate answers in reportable Bengali language.
25
+
26
  """
27
  )
28
 
 
109
  # Retry logic
110
  for attempt in range(MAX_RETRIES):
111
  try:
112
+ yield build_spinner_html("Working..."), ""
113
  response = requests.post(
114
  f"{API_URL}?key={api_key}",
115
  headers=headers,
 
209
 
210
  # Working sample image (local file)
211
  gr.Markdown('<p style="font-size:0.9em;margin-top:50px;">📸 Sample Skin Lesion</p>')
212
+ gr.Image(value="assets/bdsd.jpg", show_label=False, interactive=False, height=300)
213
 
214
  # Event binding
215
  analyze_btn.click(
assets/bdsd.jpg ADDED