Spaces:
Runtime error
Runtime error
Update web_demo.py
Browse files- web_demo.py +2 -2
web_demo.py
CHANGED
@@ -68,8 +68,8 @@ if __name__ == "__main__":
|
|
68 |
if use_local_interface :
|
69 |
model_path0 = 'THUDM/glm-4-voice-9b'
|
70 |
# dtype = 'bfloat16'
|
71 |
-
|
72 |
-
worker = ModelWorker(model_path0,
|
73 |
|
74 |
|
75 |
def clear_fn():
|
|
|
68 |
if use_local_interface :
|
69 |
model_path0 = 'THUDM/glm-4-voice-9b'
|
70 |
# dtype = 'bfloat16'
|
71 |
+
device = 'cpu'
|
72 |
+
worker = ModelWorker(model_path0,device)
|
73 |
|
74 |
|
75 |
def clear_fn():
|