Spaces:
Runtime error
Runtime error
Commit
•
5c4d65b
1
Parent(s):
9f26b2d
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import os
|
3 |
def func(query):
|
4 |
try:
|
5 |
-
os.system("pip install rwkvstic inquirer transformers torch jax")
|
6 |
from rwkvstic.load import RWKV
|
7 |
from rwkvstic.agnostic.backends import JAX
|
8 |
model = RWKV("https://huggingface.co/BlinkDL/rwkv-4-pile-3b/resolve/main/RWKV-4-Pile-3B-Instruct-test1-20230124.pth",
|
@@ -22,4 +22,4 @@ def func(query):
|
|
22 |
return "Error [B]" + str(e)
|
23 |
|
24 |
iface = gr.Interface(fn=func, inputs="text", outputs="text")
|
25 |
-
iface.launch()
|
|
|
2 |
import os
|
3 |
def func(query):
|
4 |
try:
|
5 |
+
os.system("pip install rwkvstic inquirer transformers torch jax jaxlib")
|
6 |
from rwkvstic.load import RWKV
|
7 |
from rwkvstic.agnostic.backends import JAX
|
8 |
model = RWKV("https://huggingface.co/BlinkDL/rwkv-4-pile-3b/resolve/main/RWKV-4-Pile-3B-Instruct-test1-20230124.pth",
|
|
|
22 |
return "Error [B]" + str(e)
|
23 |
|
24 |
iface = gr.Interface(fn=func, inputs="text", outputs="text")
|
25 |
+
iface.launch()
|