Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ with gr.Blocks(title="LTX-2.4 Prompt Enhancer") as demo:
|
|
| 81 |
prompt = gr.Textbox(label="Prompt", lines=3, placeholder="e.g. a red fox in a snowy forest")
|
| 82 |
image = gr.Image(label="First frame (optional — for image-to-video)", type="pil")
|
| 83 |
btn = gr.Button("Enhance", variant="primary")
|
| 84 |
-
out = gr.Textbox(label="Enhanced prompt", lines=12
|
| 85 |
btn.click(enhance, inputs=[prompt, image], outputs=[out], api_name="enhance")
|
| 86 |
|
| 87 |
if __name__ == "__main__":
|
|
|
|
| 81 |
prompt = gr.Textbox(label="Prompt", lines=3, placeholder="e.g. a red fox in a snowy forest")
|
| 82 |
image = gr.Image(label="First frame (optional — for image-to-video)", type="pil")
|
| 83 |
btn = gr.Button("Enhance", variant="primary")
|
| 84 |
+
out = gr.Textbox(label="Enhanced prompt", lines=12)
|
| 85 |
btn.click(enhance, inputs=[prompt, image], outputs=[out], api_name="enhance")
|
| 86 |
|
| 87 |
if __name__ == "__main__":
|