Fix string interpolation
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# Use a lightweight Python 3.11 image
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Set the working directory inside the container
|
||||
|
||||
+2
-1
@@ -30,7 +30,8 @@ os.makedirs(CAMERA_IMAGE_DIR, exist_ok=True)
|
||||
|
||||
@app.route("/")
|
||||
def hello_world():
|
||||
return f"<p>{generate(prompt='Say \"Hello, World!\"')}</p>"
|
||||
gen = generate(prompt="Say \"Hello, World!\"")
|
||||
return f"<p>{gen}</p>"
|
||||
|
||||
|
||||
@app.route("/cooking-params", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user