Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ if not is_hugging_face:
|
|
52 |
|
53 |
print("initialized")
|
54 |
|
55 |
-
@spaces.GPU(duration=
|
56 |
def generate_text(messages):
|
57 |
if is_hugging_face:#need everytime initialize for ZeroGPU
|
58 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
52 |
|
53 |
print("initialized")
|
54 |
|
55 |
+
@spaces.GPU(duration=10)
|
56 |
def generate_text(messages):
|
57 |
if is_hugging_face:#need everytime initialize for ZeroGPU
|
58 |
model = AutoModelForCausalLM.from_pretrained(
|