Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ model = 'stable-diffusion-v1-5/stable-diffusion-v1-5'
|
|
| 14 |
|
| 15 |
# @spaces.GPU #[uncomment to use ZeroGPU]
|
| 16 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 17 |
-
|
| 18 |
torch_dtype=torch.float16
|
| 19 |
else:
|
| 20 |
torch_dtype='auto'
|
|
@@ -82,7 +82,7 @@ css = """
|
|
| 82 |
|
| 83 |
with gr.Blocks(css=css) as demo:
|
| 84 |
with gr.Column(elem_id="col-container"):
|
| 85 |
-
gr.Markdown(" #
|
| 86 |
|
| 87 |
with gr.Row():
|
| 88 |
content = gr.Text(
|
|
|
|
| 14 |
|
| 15 |
# @spaces.GPU #[uncomment to use ZeroGPU]
|
| 16 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 17 |
+
if device == 'cuda':
|
| 18 |
torch_dtype=torch.float16
|
| 19 |
else:
|
| 20 |
torch_dtype='auto'
|
|
|
|
| 82 |
|
| 83 |
with gr.Blocks(css=css) as demo:
|
| 84 |
with gr.Column(elem_id="col-container"):
|
| 85 |
+
gr.Markdown(" # Create QR Code fingerprints")
|
| 86 |
|
| 87 |
with gr.Row():
|
| 88 |
content = gr.Text(
|