Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -13,16 +13,16 @@ import spaces # 1. Import the spaces library
|
|
13 |
MODEL_ID = "Reubencf/gemma3-konkani"
|
14 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
15 |
|
16 |
-
TITLE = "
|
17 |
DESCRIPTION = (
|
18 |
-
"
|
19 |
-
"
|
20 |
)
|
21 |
# We define the pipeline object globally but initialize it inside the function
|
22 |
pipe = None
|
23 |
|
24 |
# ββ Generation Function ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
25 |
-
@spaces.GPU(duration=
|
26 |
def generate_response(message, history):
|
27 |
"""
|
28 |
This function is called for each user message.
|
|
|
13 |
MODEL_ID = "Reubencf/gemma3-konkani"
|
14 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
15 |
|
16 |
+
TITLE = "Konkani LLM Fine Tuned on Gemma 3"
|
17 |
DESCRIPTION = (
|
18 |
+
"Version 1 of the Konkani LLM\n"
|
19 |
+
"Will be improved as years pass by"
|
20 |
)
|
21 |
# We define the pipeline object globally but initialize it inside the function
|
22 |
pipe = None
|
23 |
|
24 |
# ββ Generation Function ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
25 |
+
@spaces.GPU(duration=120) # 2. Decorate the function that needs the GPU
|
26 |
def generate_response(message, history):
|
27 |
"""
|
28 |
This function is called for each user message.
|