Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,6 +81,45 @@ outputs_images = [
|
|
81 |
# )
|
82 |
# demo_app.launch(debug=False, enable_queue=True)
|
83 |
# gr.Examples(examples) # Add the examples to the app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
with gr.Blocks() as demo:
|
85 |
gr.Markdown(
|
86 |
"""
|
@@ -119,7 +158,7 @@ with gr.Blocks() as demo:
|
|
119 |
)
|
120 |
# gr.Examples(inputs=examples, outputs=outputs_images)
|
121 |
# Add the description below the layout
|
122 |
-
gr.Markdown(
|
123 |
# Launch the app
|
124 |
demo.launch(share=False)
|
125 |
|
|
|
81 |
# )
|
82 |
# demo_app.launch(debug=False, enable_queue=True)
|
83 |
# gr.Examples(examples) # Add the examples to the app
|
84 |
+
|
85 |
+
|
86 |
+
readme_html = """
|
87 |
+
<html>
|
88 |
+
<head>
|
89 |
+
<style>
|
90 |
+
.description {
|
91 |
+
margin: 20px;
|
92 |
+
padding: 10px;
|
93 |
+
border: 1px solid #ccc;
|
94 |
+
}
|
95 |
+
</style>
|
96 |
+
</head>
|
97 |
+
<body>
|
98 |
+
<div class="description">
|
99 |
+
<p><strong>Description:</strong></p>
|
100 |
+
<p>We present a demo for performing object segmentation with training a Yolov8-seg on Brain tumor dataset. The model was trained on 236 training images and validated on 28 images.</p>
|
101 |
+
<p><strong>Usage:</strong></p>
|
102 |
+
<p>You can upload Brain tumor images, and the demo will provide you with your segmented image.</p>
|
103 |
+
<p><strong>Dataset:</strong></p>
|
104 |
+
<p>This dataset comprises a total of 278 images, which are divided into three distinct sets for various purposes:</p>
|
105 |
+
<ul>
|
106 |
+
<li><strong>Training Set:</strong> It includes 236 images and is intended for training the model.</li>
|
107 |
+
<li><strong>Validation Set:</strong> There are 28 images in the validation set, which is used for optimizing model parameters during development.</li>
|
108 |
+
<li><strong>Test Set:</strong> This set consists of 14 images and serves as a separate evaluation dataset to assess the performance of trained models.</li>
|
109 |
+
</ul>
|
110 |
+
<p><strong>License:</strong> This dataset is made available under the Creative Commons Attribution 4.0 International License (CC BY 4.0).</p>
|
111 |
+
<p>To access and download this dataset, please follow this link: <a href="https://universe.roboflow.com/detection-qskiw/segmnetation" target="_blank">Dataset Download</a></p>
|
112 |
+
<p><strong>Download Dataset:</strong></p>
|
113 |
+
<p>To download the dataset we used, you can use the following command in colab:</p>
|
114 |
+
<pre>!wget https://universe.roboflow.com/ds/AsTB5oygI6?key=bOrqP0fWlJ</pre>
|
115 |
+
<p>Feel free to explore and use this repository for your object segmentation needs. If you have any questions or need assistance, please don't hesitate to reach out.</p>
|
116 |
+
</div>
|
117 |
+
</body>
|
118 |
+
</html>
|
119 |
+
"""
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
with gr.Blocks() as demo:
|
124 |
gr.Markdown(
|
125 |
"""
|
|
|
158 |
)
|
159 |
# gr.Examples(inputs=examples, outputs=outputs_images)
|
160 |
# Add the description below the layout
|
161 |
+
gr.Markdown(readme_html)
|
162 |
# Launch the app
|
163 |
demo.launch(share=False)
|
164 |
|