Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,18 @@
|
|
1 |
# -*- coding: utf-8
|
2 |
|
3 |
# π₯ Gemma 3N SOAP Note Generator
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
# Enable widgets
|
7 |
|
8 |
|
9 |
-
# Import libraries and authenticate
|
10 |
import torch
|
11 |
from transformers import AutoProcessor, AutoModelForImageTextToText
|
12 |
import gradio as gr
|
@@ -33,6 +39,8 @@ from datetime import datetime
|
|
33 |
from huggingface_hub import login
|
34 |
import os
|
35 |
|
|
|
|
|
36 |
# Authenticate with HuggingFace
|
37 |
print("π HuggingFace Authentication Required")
|
38 |
|
|
|
1 |
# -*- coding: utf-8
|
2 |
|
3 |
# π₯ Gemma 3N SOAP Note Generator
|
4 |
+
-*- coding: utf-8
|
5 |
+
|
6 |
+
# π₯ Gemma 3N SOAP Note Generator
|
7 |
+
|
8 |
+
|
9 |
+
# Enable widgets
|
10 |
+
|
11 |
+
|
12 |
|
13 |
# Enable widgets
|
14 |
|
15 |
|
|
|
16 |
import torch
|
17 |
from transformers import AutoProcessor, AutoModelForImageTextToText
|
18 |
import gradio as gr
|
|
|
39 |
from huggingface_hub import login
|
40 |
import os
|
41 |
|
42 |
+
@spaces.GPU # This decorator tells HF Spaces to use GPU
|
43 |
+
|
44 |
# Authenticate with HuggingFace
|
45 |
print("π HuggingFace Authentication Required")
|
46 |
|