nexusbert commited on
Commit
2ea0732
·
1 Parent(s): 4f9e3d3

push final fix

Browse files
Files changed (2) hide show
  1. mediSync/app.py +11 -8
  2. requirements.txt +11 -11
mediSync/app.py CHANGED
@@ -453,8 +453,8 @@ def create_interface():
453
  )
454
 
455
  with gr.Column():
456
- multi_results = gr.HTML(label="Analysis Results")
457
- multi_plot = gr.HTML(label="Visualization")
458
 
459
  # Set up examples if sample image exists
460
  if sample_image_path:
@@ -462,6 +462,7 @@ def create_interface():
462
  examples=[[sample_image_path, example_report]],
463
  inputs=[multi_img_input, multi_text_input],
464
  label="Example X-ray and Report",
 
465
  )
466
 
467
  with gr.Tab("Image Analysis"):
@@ -472,9 +473,9 @@ def create_interface():
472
  img_analyze_btn = gr.Button("Analyze Image", variant="primary")
473
 
474
  with gr.Column():
475
- img_output = gr.Image(label="Processed Image")
476
- img_results = gr.HTML(label="Analysis Results")
477
- img_plot = gr.HTML(label="Visualization")
478
 
479
  # Set up example if sample image exists
480
  if sample_image_path:
@@ -482,6 +483,7 @@ def create_interface():
482
  examples=[[sample_image_path]],
483
  inputs=[img_input],
484
  label="Example X-ray Image",
 
485
  )
486
 
487
  with gr.Tab("Text Analysis"):
@@ -496,15 +498,16 @@ def create_interface():
496
  text_analyze_btn = gr.Button("Analyze Text", variant="primary")
497
 
498
  with gr.Column():
499
- text_output = gr.Textbox(label="Processed Text")
500
- text_results = gr.HTML(label="Analysis Results")
501
- text_plot = gr.HTML(label="Entity Visualization")
502
 
503
  # Set up example
504
  gr.Examples(
505
  examples=[[example_report]],
506
  inputs=[text_input],
507
  label="Example Medical Report",
 
508
  )
509
 
510
  with gr.Tab("About"):
 
453
  )
454
 
455
  with gr.Column():
456
+ multi_results = gr.HTML(label="Analysis Results", api_name=False)
457
+ multi_plot = gr.HTML(label="Visualization", api_name=False)
458
 
459
  # Set up examples if sample image exists
460
  if sample_image_path:
 
462
  examples=[[sample_image_path, example_report]],
463
  inputs=[multi_img_input, multi_text_input],
464
  label="Example X-ray and Report",
465
+ api_name=False,
466
  )
467
 
468
  with gr.Tab("Image Analysis"):
 
473
  img_analyze_btn = gr.Button("Analyze Image", variant="primary")
474
 
475
  with gr.Column():
476
+ img_output = gr.Image(label="Processed Image", api_name=False)
477
+ img_results = gr.HTML(label="Analysis Results", api_name=False)
478
+ img_plot = gr.HTML(label="Visualization", api_name=False)
479
 
480
  # Set up example if sample image exists
481
  if sample_image_path:
 
483
  examples=[[sample_image_path]],
484
  inputs=[img_input],
485
  label="Example X-ray Image",
486
+ api_name=False,
487
  )
488
 
489
  with gr.Tab("Text Analysis"):
 
498
  text_analyze_btn = gr.Button("Analyze Text", variant="primary")
499
 
500
  with gr.Column():
501
+ text_output = gr.Textbox(label="Processed Text", api_name=False)
502
+ text_results = gr.HTML(label="Analysis Results", api_name=False)
503
+ text_plot = gr.HTML(label="Entity Visualization", api_name=False)
504
 
505
  # Set up example
506
  gr.Examples(
507
  examples=[[example_report]],
508
  inputs=[text_input],
509
  label="Example Medical Report",
510
+ api_name=False,
511
  )
512
 
513
  with gr.Tab("About"):
requirements.txt CHANGED
@@ -1,11 +1,11 @@
1
- torch>=2.0.0
2
- transformers>=4.30.0
3
- datasets>=2.12.0
4
- pillow>=9.0.0
5
- matplotlib>=3.7.0
6
- pandas>=2.0.0
7
- numpy>=1.24.0
8
- scikit-learn>=1.2.0
9
- gradio>=5.20.1
10
- huggingface_hub>=0.16.0
11
- opencv-python>=4.7.0
 
1
+ torch
2
+ transformers
3
+ datasets
4
+ pillow
5
+ matplotlib
6
+ pandas
7
+ numpy
8
+ scikit-learn
9
+ gradio
10
+ huggingface_hub
11
+ opencv-python