Spaces:
Sleeping
Sleeping
Raumkommander
commited on
Commit
·
c8ac78e
1
Parent(s):
4295ae7
inital deployment1
Browse files
app.py
CHANGED
@@ -10,9 +10,8 @@ from PIL import Image
|
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
##realtime_pipe = StableDiffusionPipeline.from_pretrained("radames/Real-Time-Latent-Consistency-Model").to(device)
|
12 |
|
13 |
-
|
14 |
# Load the model (optimized for inference)
|
15 |
-
model_id = "
|
16 |
|
17 |
|
18 |
realtime_pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
@@ -53,4 +52,4 @@ with gr.Blocks() as demo:
|
|
53 |
prompt_input = gr.Textbox(label="Real-Time Latent Consistency Model Prompt", value="A futuristic landscape")
|
54 |
webcam_feed.change(fn=video_stream, inputs=[prompt_input], outputs=[processed_image, canvas])
|
55 |
|
56 |
-
demo.launch(
|
|
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
##realtime_pipe = StableDiffusionPipeline.from_pretrained("radames/Real-Time-Latent-Consistency-Model").to(device)
|
12 |
|
|
|
13 |
# Load the model (optimized for inference)
|
14 |
+
model_id = "https://huggingface.co/spaces/radames/Real-Time-Latent-Consistency-Model"
|
15 |
|
16 |
|
17 |
realtime_pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
|
|
52 |
prompt_input = gr.Textbox(label="Real-Time Latent Consistency Model Prompt", value="A futuristic landscape")
|
53 |
webcam_feed.change(fn=video_stream, inputs=[prompt_input], outputs=[processed_image, canvas])
|
54 |
|
55 |
+
demo.launch()
|