Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def infere(image):
|
|
| 74 |
return generated_texts
|
| 75 |
|
| 76 |
# Define the title, description, and device description for the Gradio interface
|
| 77 |
-
title = f"<a href='https://huggingface.co/eltorio/IDEFICS3_ROCO'>IDEFICS3_ROCO</a>:
|
| 78 |
desc = "This model generates a description of a medical image."
|
| 79 |
|
| 80 |
device_desc = f"This model is running on {device} 🚀." if device == torch.device('cuda') else f"🐢 This model is running on {device} it will be very (very) slow. If you can donate some GPU time it will be usable 🐢. <a href='https://huggingface.co/eltorio/IDEFICS3_ROCO/discussions'>Please contact us.</a>"
|
|
|
|
| 74 |
return generated_texts
|
| 75 |
|
| 76 |
# Define the title, description, and device description for the Gradio interface
|
| 77 |
+
title = f"<a href='https://huggingface.co/eltorio/IDEFICS3_ROCO'>IDEFICS3_ROCO</a>: AI X-ray Image Recognition <span style='color:red'><b>running on {device}</b></span>"
|
| 78 |
desc = "This model generates a description of a medical image."
|
| 79 |
|
| 80 |
device_desc = f"This model is running on {device} 🚀." if device == torch.device('cuda') else f"🐢 This model is running on {device} it will be very (very) slow. If you can donate some GPU time it will be usable 🐢. <a href='https://huggingface.co/eltorio/IDEFICS3_ROCO/discussions'>Please contact us.</a>"
|