Upload handler.py with huggingface_hub
Browse files- handler.py +1 -2
handler.py
CHANGED
@@ -36,8 +36,7 @@ class EndpointHandler:
|
|
36 |
prompt = prompts[0] if prompts else ""
|
37 |
|
38 |
# Generate a placeholder SVG
|
39 |
-
|
40 |
-
svg = f'<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="20">{model_name}: {prompt}</text></svg>'
|
41 |
|
42 |
# Create a placeholder image
|
43 |
image = Image.new('RGB', (512, 512), color = (100, 100, 100))
|
|
|
36 |
prompt = prompts[0] if prompts else ""
|
37 |
|
38 |
# Generate a placeholder SVG
|
39 |
+
svg = f'<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="20">{diffsketcher}: {prompt}</text></svg>'
|
|
|
40 |
|
41 |
# Create a placeholder image
|
42 |
image = Image.new('RGB', (512, 512), color = (100, 100, 100))
|