app
Browse files- app.py +8 -0
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -342,6 +342,14 @@ if __name__ == "__main__":
|
|
| 342 |
image_output = gr.Image(type="filepath", height=512)
|
| 343 |
results = gr.File()
|
| 344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
clear_button.click(lambda: None, None, image_input, queue=False)
|
| 346 |
clear_button.click(lambda: None, None, image_output, queue=False)
|
| 347 |
image_button.click(
|
|
|
|
| 342 |
image_output = gr.Image(type="filepath", height=512)
|
| 343 |
results = gr.File()
|
| 344 |
|
| 345 |
+
gr.Markdown("""
|
| 346 |
+
Example images extracted from Wikipedia, released under:
|
| 347 |
+
1. CC0 Universial Public Domain. Source: https://commons.wikimedia.org/wiki/File:Normal_posteroanterior_(PA)_chest_radiograph_(X-ray).jpg
|
| 348 |
+
2. Creative Commons Attribution-Share Alike 4.0 International. Source: https://commons.wikimedia.org/wiki/File:Chest_X-ray.jpg
|
| 349 |
+
3. Creative Commons Attribution 3.0 Unported. Source https://commons.wikimedia.org/wiki/File:Implantable_cardioverter_defibrillator_chest_X-ray.jpg
|
| 350 |
+
4. Creative Commons Attribution-Share Alike 3.0 Unported. Source: https://commons.wikimedia.org/wiki/File:Medical_X-Ray_imaging_PRD06_nevit.jpg
|
| 351 |
+
""")
|
| 352 |
+
|
| 353 |
clear_button.click(lambda: None, None, image_input, queue=False)
|
| 354 |
clear_button.click(lambda: None, None, image_output, queue=False)
|
| 355 |
image_button.click(
|
requirements.txt
CHANGED
|
@@ -3,5 +3,5 @@ numpy==1.25.0
|
|
| 3 |
opencv-python==4.8.0.74
|
| 4 |
scipy==1.10.1
|
| 5 |
torch_geometric==2.3.0
|
| 6 |
-
torchvision
|
| 7 |
gradio==3.50.2
|
|
|
|
| 3 |
opencv-python==4.8.0.74
|
| 4 |
scipy==1.10.1
|
| 5 |
torch_geometric==2.3.0
|
| 6 |
+
torchvision==0.15.2
|
| 7 |
gradio==3.50.2
|