Upload app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# 🏥 Gemma 3N SOAP Note Generator
|
| 5 |
## Interactive Medical Documentation Assistant
|
|
@@ -7,7 +12,11 @@
|
|
| 7 |
This notebook provides a complete interface for generating SOAP notes from medical text using the Gemma 3N model.
|
| 8 |
"""
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Enable widgets
|
| 13 |
from IPython.display import display, HTML
|
|
@@ -363,6 +372,8 @@ except Exception as e:
|
|
| 363 |
"""
|
| 364 |
|
| 365 |
# Install required packages for image processing and OCR
|
|
|
|
|
|
|
| 366 |
|
| 367 |
import gradio as gr
|
| 368 |
import torch
|
|
@@ -692,3 +703,4 @@ show_system_info()
|
|
| 692 |
*🤖 Powered by Google's Gemma 3N Model | 🔒 All processing performed locally*
|
| 693 |
"""
|
| 694 |
|
|
|
|
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
+
"""gemma_3n_colab.ipynb
|
| 3 |
+
|
| 4 |
+
Automatically generated by Colab.
|
| 5 |
+
|
| 6 |
+
Original file is located at
|
| 7 |
+
https://colab.research.google.com/drive/1U5pbaYG8qD7HFANwU7PI1jbLGOPvArnP
|
| 8 |
|
| 9 |
# 🏥 Gemma 3N SOAP Note Generator
|
| 10 |
## Interactive Medical Documentation Assistant
|
|
|
|
| 12 |
This notebook provides a complete interface for generating SOAP notes from medical text using the Gemma 3N model.
|
| 13 |
"""
|
| 14 |
|
| 15 |
+
# Install required packages
|
| 16 |
+
!pip install -q transformers torch torchvision torchaudio timm accelerate
|
| 17 |
+
!pip install -q ipywidgets gradio
|
| 18 |
+
!pip install -q --upgrade huggingface_hub
|
| 19 |
+
!pip install GPUtil
|
| 20 |
|
| 21 |
# Enable widgets
|
| 22 |
from IPython.display import display, HTML
|
|
|
|
| 372 |
"""
|
| 373 |
|
| 374 |
# Install required packages for image processing and OCR
|
| 375 |
+
!pip install -q pytesseract opencv-python pillow easyocr
|
| 376 |
+
!apt-get install -q tesseract-ocr
|
| 377 |
|
| 378 |
import gradio as gr
|
| 379 |
import torch
|
|
|
|
| 703 |
*🤖 Powered by Google's Gemma 3N Model | 🔒 All processing performed locally*
|
| 704 |
"""
|
| 705 |
|
| 706 |
+
!gradio deploy
|