geshang commited on
Commit
fb3008f
·
verified ·
1 Parent(s): d41683b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -309,7 +309,11 @@ def run_pipeline(image: PILImage.Image, prompt: str):
309
  return f"Error processing request: {str(e)}", None
310
 
311
 
312
-
 
 
 
 
313
  with gr.Blocks(title="Seg-R1") as demo:
314
  # gr.Markdown("# Seg-R1")
315
  # gr.Markdown("Upload an image and ask questions about segmentation.")
 
309
  return f"Error processing request: {str(e)}", None
310
 
311
 
312
+ def load_description(fp):
313
+ with open(fp, 'r', encoding='utf-8') as f:
314
+ content = f.read()
315
+ return content
316
+
317
  with gr.Blocks(title="Seg-R1") as demo:
318
  # gr.Markdown("# Seg-R1")
319
  # gr.Markdown("Upload an image and ask questions about segmentation.")