Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def messages_for_python(python):
|
|
| 64 |
### cpp is a file extension of C++ code
|
| 65 |
def write_output(cpp: str):
|
| 66 |
code = cpp.replace("```cpp", "").replace("```", "")
|
| 67 |
-
with open(f"optimized-{current_time}.cpp", "w") as f:
|
| 68 |
f.write(code)
|
| 69 |
|
| 70 |
def convert_and_optimize_code_with_openai(python):
|
|
|
|
| 64 |
### cpp is a file extension of C++ code
|
| 65 |
def write_output(cpp: str):
|
| 66 |
code = cpp.replace("```cpp", "").replace("```", "")
|
| 67 |
+
with open(f"/tmp/optimized-{current_time}.cpp", "w") as f:
|
| 68 |
f.write(code)
|
| 69 |
|
| 70 |
def convert_and_optimize_code_with_openai(python):
|