Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def generate(filepath, input=DEFAULT_INPUT, sampling=False, temperature=0.7, top
|
|
111 |
|
112 |
file_content = globals()[filetype_data["function"]](filepath)
|
113 |
formatted_input = f"{instruction}\n{input_prefix}\n{input}"
|
114 |
-
content = (file_content if isinstance(file_content, list) else [file_content]) + [formatted_input]
|
115 |
|
116 |
msgs = [{ "role": "user", "content": content }]
|
117 |
|
|
|
111 |
|
112 |
file_content = globals()[filetype_data["function"]](filepath)
|
113 |
formatted_input = f"{instruction}\n{input_prefix}\n{input}"
|
114 |
+
content = (file_content if isinstance(file_content, list) else [*file_content]) + [formatted_input]
|
115 |
|
116 |
msgs = [{ "role": "user", "content": content }]
|
117 |
|