Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
| 17 |
|
| 18 |
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
|
| 19 |
|
| 20 |
-
|
| 21 |
config_mod = sys.modules[config_mod_name]
|
| 22 |
code_dir = os.path.dirname(config_mod.__file__)
|
| 23 |
|
|
|
|
| 17 |
|
| 18 |
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
|
| 19 |
|
| 20 |
+
config_mod_name = config.__class__.__module__
|
| 21 |
config_mod = sys.modules[config_mod_name]
|
| 22 |
code_dir = os.path.dirname(config_mod.__file__)
|
| 23 |
|