Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,10 @@ def return_operation_details(from_model, to_model):
|
|
62 |
will_write['config_general']['model_name'] = to_model
|
63 |
will_write = json.dumps(will_write, indent=2)
|
64 |
|
65 |
-
|
|
|
|
|
|
|
66 |
|
67 |
return liste
|
68 |
|
|
|
62 |
will_write['config_general']['model_name'] = to_model
|
63 |
will_write = json.dumps(will_write, indent=2)
|
64 |
|
65 |
+
readme_file = fs.read_text("/".join(path_for.split("/")[:3])+"/README.md").replace(from_model, to_model)
|
66 |
+
|
67 |
+
liste.extend([CommitOperationAdd(path_in_repo="/".join(path_for.split("/")[3:]), path_or_fileobj=will_write.encode()),
|
68 |
+
CommitOperationAdd(path_in_repo="README.md", path_or_fileobj=readme_file.encode())])
|
69 |
|
70 |
return liste
|
71 |
|