Update app.py
Browse files
app.py
CHANGED
|
@@ -36,26 +36,26 @@ interface = gr.Interface(
|
|
| 36 |
examples=sample_images, # Preloaded images for testing
|
| 37 |
title="Bone Fracture Detection",
|
| 38 |
description="Upload an X-ray image or select a sample image to check for fractures.",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
)
|
| 40 |
|
| 41 |
-
# Add Instructions and Capabilities
|
| 42 |
-
interface.description += "\n\n### Instructions\n"
|
| 43 |
-
interface.description += "- Type a question or statement\n"
|
| 44 |
-
interface.description += "- Upload images or audio files\n"
|
| 45 |
-
interface.description += "- You can combine text with media files\n"
|
| 46 |
-
interface.description += "- Support 2 modalities at the same time\n"
|
| 47 |
-
interface.description += "- The model can analyze images and transcribe audio\n"
|
| 48 |
-
interface.description += "- For best results with images, use JPG or PNG files\n"
|
| 49 |
-
interface.description += "- For audio, use WAV, MP3, or FLAC files\n"
|
| 50 |
-
|
| 51 |
-
interface.description += "\n\n### Capabilities\n"
|
| 52 |
-
interface.description += "This chatbot can:\n"
|
| 53 |
-
interface.description += "- Answer questions and provide explanations\n"
|
| 54 |
-
interface.description += "- Describe and analyze images\n"
|
| 55 |
-
interface.description += "- Transcribe, translate, summarize, and analyze audio content\n"
|
| 56 |
-
interface.description += "- Process multiple inputs in the same message\n"
|
| 57 |
-
interface.description += "- Maintain context throughout the conversation\n"
|
| 58 |
-
|
| 59 |
# Launch the Gradio app
|
| 60 |
if __name__ == "__main__":
|
| 61 |
interface.launch()
|
|
|
|
| 36 |
examples=sample_images, # Preloaded images for testing
|
| 37 |
title="Bone Fracture Detection",
|
| 38 |
description="Upload an X-ray image or select a sample image to check for fractures.",
|
| 39 |
+
article="""
|
| 40 |
+
## Instructions
|
| 41 |
+
- Type a question or statement
|
| 42 |
+
- Upload images or audio files
|
| 43 |
+
- You can combine text with media files
|
| 44 |
+
- Support 2 modalities at the same time
|
| 45 |
+
- The model can analyze images and transcribe audio
|
| 46 |
+
- For best results with images, use JPG or PNG files
|
| 47 |
+
- For audio, use WAV, MP3, or FLAC files
|
| 48 |
+
|
| 49 |
+
## Capabilities
|
| 50 |
+
This chatbot can:
|
| 51 |
+
- Answer questions and provide explanations
|
| 52 |
+
- Describe and analyze images
|
| 53 |
+
- Transcribe, translate, summarize, and analyze audio content
|
| 54 |
+
- Process multiple inputs in the same message
|
| 55 |
+
- Maintain context throughout the conversation
|
| 56 |
+
"""
|
| 57 |
)
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
# Launch the Gradio app
|
| 60 |
if __name__ == "__main__":
|
| 61 |
interface.launch()
|