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