Spaces:
Runtime error
Runtime error
Commit
·
ce5c55e
1
Parent(s):
79912d7
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def func(query):
|
|
7 |
model = RWKV("https://huggingface.co/BlinkDL/rwkv-4-pile-3b/resolve/main/RWKV-4-Pile-3B-Instruct-test1-20230124.pth")
|
8 |
|
9 |
def generate(query):
|
10 |
-
model.loadContext(newctx=
|
11 |
output = model.forward(number=100)["output"]
|
12 |
return output
|
13 |
except Exception as e:
|
|
|
7 |
model = RWKV("https://huggingface.co/BlinkDL/rwkv-4-pile-3b/resolve/main/RWKV-4-Pile-3B-Instruct-test1-20230124.pth")
|
8 |
|
9 |
def generate(query):
|
10 |
+
model.loadContext(newctx=query)
|
11 |
output = model.forward(number=100)["output"]
|
12 |
return output
|
13 |
except Exception as e:
|