Spaces:
Running
Running
Update index.html
Browse files12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849<!doctype html><!DOCTYPE html><html><head><title>My Photo Studio</title><script type="module" crossoriginsrc="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script><link rel="stylesheet"href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css"></head><body><gradio-lite>import gradio as grdef display_image(img):return imgwith gr.Blocks() as demo:gr.Markdown("# My Photo Studio")gr.Markdown("Upload an image and explore editing options!")with gr.Row():image = gr.Image(label="Upload Image")preview = gr.Image(label="Image Preview")with gr.Row():gr.Slider(0, 100, value=50, label="Brightness")gr.Slider(0, 100, value=50, label="Contrast")with gr.Row():gr.Button("Crop Image")gr.Button("Save Image")image.change(display_image, inputs=image, outputs=preview)demo.launch()</gradio-lite></body></html>
index.html+46-16