fcossio commited on
Commit
6beabe4
1 Parent(s): b99f5a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -4
app.py CHANGED
@@ -74,9 +74,24 @@ with demo:
74
  with gr.Column():
75
  gr.Markdown("""
76
  # Measure the diameter of fibers
77
- Select fibers that you want to measure. Only the center of each sketched blob is considered.
78
- The recommended pixel size for uploaded images is 256x256.
79
- """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  with gr.Row():
81
  with gr.Column():
82
  img = gr.Image(
@@ -99,7 +114,8 @@ The recommended pixel size for uploaded images is 256x256.
99
  btn.click(fn=predict_mask, inputs=[img, threshold], outputs=[img2,text], )
100
  examples = gr.Examples(examples=['test0001.png',
101
  'test0002.png',
102
- 'test0003.png'],
 
103
  inputs=img)
104
 
105
  demo.launch()
 
74
  with gr.Column():
75
  gr.Markdown("""
76
  # Measure the diameter of fibers
77
+
78
+ ## How to use this app
79
+
80
+ Select fibers that you want to measure. For each fiber click once to draw a blob. Only the center of each sketched blob is considered for the selection of the fiber. You will obtain the measurements for the selected fibers.
81
+
82
+ ## Input
83
+
84
+ An image and a selection point. The recommended pixel size for uploaded images is 256x256.
85
+
86
+ ## Output
87
+ The measurements for the fiber that was selected.
88
+
89
+ ## Examples
90
+
91
+ The first three examples were part of the rendered hold out set, the fourth is a real micrograph also never seen by the model during training.
92
+
93
+
94
+ """)
95
  with gr.Row():
96
  with gr.Column():
97
  img = gr.Image(
 
114
  btn.click(fn=predict_mask, inputs=[img, threshold], outputs=[img2,text], )
115
  examples = gr.Examples(examples=['test0001.png',
116
  'test0002.png',
117
+ 'test0003.png',
118
+ 'real_test0000'],
119
  inputs=img)
120
 
121
  demo.launch()