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