Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def process_model(model_id, q_method, latest, oauth_token: gr.OAuthToken | None)
|
|
49 |
print(f"Current working directory: {os.getcwd()}")
|
50 |
print(f"Model directory contents: {os.listdir(model_name)}")
|
51 |
|
52 |
-
model_file = {model_name}
|
53 |
f = open("{model_file}", "w")
|
54 |
print(f.write("From {model_id}"))
|
55 |
ollama_conversion = f"ollama create -f {model_file} {OLLAMA_USERNAME}/{model_id}:{q_method}"
|
|
|
49 |
print(f"Current working directory: {os.getcwd()}")
|
50 |
print(f"Model directory contents: {os.listdir(model_name)}")
|
51 |
|
52 |
+
model_file = '${model_name} + _modelfile'
|
53 |
f = open("{model_file}", "w")
|
54 |
print(f.write("From {model_id}"))
|
55 |
ollama_conversion = f"ollama create -f {model_file} {OLLAMA_USERNAME}/{model_id}:{q_method}"
|