Spaces:
Runtime error
Runtime error
faxnoprinter commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,6 @@ def generate_sketch(concept, temperature):
|
|
| 16 |
try:
|
| 17 |
subprocess.run(command, check=True)
|
| 18 |
|
| 19 |
-
# Locate generated file — assume canvas PNG is always generated with this naming scheme
|
| 20 |
img_path = os.path.join(save_path, concept, f"{concept}_canvas.png")
|
| 21 |
|
| 22 |
if not os.path.exists(img_path):
|
|
@@ -33,7 +32,7 @@ def ui():
|
|
| 33 |
gr.Markdown("## 🎨 Sketch Generator")
|
| 34 |
|
| 35 |
with gr.Row():
|
| 36 |
-
concept = gr.Textbox(label="
|
| 37 |
temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.3, step=0.05, label="Temperature")
|
| 38 |
generate_btn = gr.Button("Generate Sketch")
|
| 39 |
|
|
|
|
| 16 |
try:
|
| 17 |
subprocess.run(command, check=True)
|
| 18 |
|
|
|
|
| 19 |
img_path = os.path.join(save_path, concept, f"{concept}_canvas.png")
|
| 20 |
|
| 21 |
if not os.path.exists(img_path):
|
|
|
|
| 32 |
gr.Markdown("## 🎨 Sketch Generator")
|
| 33 |
|
| 34 |
with gr.Row():
|
| 35 |
+
concept = gr.Textbox(label="What Should I sketch", placeholder="e.g. Taj Mahal")
|
| 36 |
temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.3, step=0.05, label="Temperature")
|
| 37 |
generate_btn = gr.Button("Generate Sketch")
|
| 38 |
|