Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ except Exception as e:
|
|
67 |
|
68 |
# Text generation parameters
|
69 |
penalty_decay = 0.996
|
70 |
-
|
71 |
def generate_prompt(instruction, input=""):
|
72 |
instruction = instruction.strip().replace('\r\n','\n').replace('\n\n','\n')
|
73 |
input = input.strip().replace('\r\n','\n').replace('\n\n','\n')
|
|
|
67 |
|
68 |
# Text generation parameters
|
69 |
penalty_decay = 0.996
|
70 |
+
@spaces.GPU
|
71 |
def generate_prompt(instruction, input=""):
|
72 |
instruction = instruction.strip().replace('\r\n','\n').replace('\n\n','\n')
|
73 |
input = input.strip().replace('\r\n','\n').replace('\n\n','\n')
|