Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,6 +49,7 @@ def check(model_name):
|
|
| 49 |
return False
|
| 50 |
|
| 51 |
def init():
|
|
|
|
| 52 |
if check(model_name):
|
| 53 |
model = AutoDistributedModelForCausalLM.from_pretrained(model_name)
|
| 54 |
|
|
|
|
| 49 |
return False
|
| 50 |
|
| 51 |
def init():
|
| 52 |
+
global model
|
| 53 |
if check(model_name):
|
| 54 |
model = AutoDistributedModelForCausalLM.from_pretrained(model_name)
|
| 55 |
|