EmaadKhwaja commited on
Commit
3c77a96
1 Parent(s): a2dc20e

trying a link for the image

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +9 -5
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: red
5
  colorTo: purple
6
  sdk: gradio
7
  python_version: 3.11
8
- sdk_version: 3.29.0
9
  app_file: app.py
10
  tags: [proteins, text-to-image]
11
  fullWidth: true
 
5
  colorTo: purple
6
  sdk: gradio
7
  python_version: 3.11
8
+ sdk_version: 3.30.0
9
  app_file: app.py
10
  tags: [proteins, text-to-image]
11
  fullWidth: true
app.py CHANGED
@@ -68,9 +68,10 @@ with gr.Blocks() as demo:
68
  gr.Markdown("The protein image is optional and is just used for display.")
69
 
70
  with gr.Row().style(equal_height=True):
71
- nucleus_image = gr.Image(value = './images/Armadillo repeat-containing X-linked protein 5 nucleus.jpg',
72
  type='pil',
73
- label = 'Nucleus Image')
 
74
 
75
  protein_image = gr.Image(type='pil', label = 'Protein Image (Optional)')
76
 
@@ -79,13 +80,16 @@ with gr.Blocks() as demo:
79
 
80
  with gr.Row().style(equal_height=True):
81
  nucleus_image_crop = gr.Image(type='pil',
82
- label = 'Nucleus Image')
 
83
 
84
  protein_threshold_image = gr.Image(type='pil',
85
- label = 'Protein Threshold Image')
 
86
 
87
  predicted_threshold_image = gr.Image(type='pil',
88
- label = 'Predicted Threshold image')
 
89
 
90
  predicted_heatmap = gr.Image(type='pil',
91
  label = 'Predicted Heatmap')
 
68
  gr.Markdown("The protein image is optional and is just used for display.")
69
 
70
  with gr.Row().style(equal_height=True):
71
+ nucleus_image = gr.Image(value = 'https://huggingface.co/spaces/HuangLab/CELL-E_2/resolve/main/images/Armadillo%20repeat-containing%20X-linked%20protein%205%20nucleus.jpg',
72
  type='pil',
73
+ label = 'Nucleus Image',
74
+ image_mode='L')
75
 
76
  protein_image = gr.Image(type='pil', label = 'Protein Image (Optional)')
77
 
 
80
 
81
  with gr.Row().style(equal_height=True):
82
  nucleus_image_crop = gr.Image(type='pil',
83
+ label = 'Nucleus Image',
84
+ image_mode='L')
85
 
86
  protein_threshold_image = gr.Image(type='pil',
87
+ label = 'Protein Threshold Image',
88
+ image_mode='L')
89
 
90
  predicted_threshold_image = gr.Image(type='pil',
91
+ label = 'Predicted Threshold image',
92
+ image_mode='L')
93
 
94
  predicted_heatmap = gr.Image(type='pil',
95
  label = 'Predicted Heatmap')