Spaces:
Runtime error
Runtime error
Commit
·
10a994a
1
Parent(s):
8124b54
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def main():
|
|
54 |
|
55 |
|
56 |
|
57 |
-
|
58 |
|
59 |
st.title("BAYC Text to IMAGE generator")
|
60 |
st.write(f"Stable diffusion model is fine-tuned by lora using dataset {DATASET_REPO}")
|
@@ -62,6 +62,8 @@ def main():
|
|
62 |
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
63 |
|
64 |
elapsed, pipeline = elapsed_time(load_pipeline_w_lora)
|
|
|
|
|
65 |
pipeline = pipeline.to(device)
|
66 |
|
67 |
sample = Image.open(SAMPLE_IMAGE)
|
|
|
54 |
|
55 |
|
56 |
|
57 |
+
|
58 |
|
59 |
st.title("BAYC Text to IMAGE generator")
|
60 |
st.write(f"Stable diffusion model is fine-tuned by lora using dataset {DATASET_REPO}")
|
|
|
62 |
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
63 |
|
64 |
elapsed, pipeline = elapsed_time(load_pipeline_w_lora)
|
65 |
+
st.write(f"Model is loaded in {elapsed} seconds!")
|
66 |
+
|
67 |
pipeline = pipeline.to(device)
|
68 |
|
69 |
sample = Image.open(SAMPLE_IMAGE)
|