Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +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 |
-
article="<img src='instructions.jpg' style='max-width: 100%; height: auto;'>" #Insert instructions image
|
40 |
)
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
# Launch the Gradio app
|
43 |
if __name__ == "__main__":
|
44 |
-
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 |
)
|
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()
|