Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,5 +31,14 @@ with gr.Blocks() as interface:
|
|
31 |
|
32 |
generate_button.click(fn=generate, inputs=[prompt, negative_prompt, width, height, sampling_steps], outputs=[output])
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
if __name__ == "__main__":
|
35 |
-
|
|
|
31 |
|
32 |
generate_button.click(fn=generate, inputs=[prompt, negative_prompt, width, height, sampling_steps], outputs=[output])
|
33 |
|
34 |
+
def show_message():
|
35 |
+
return "# This is the legacy space, to access the app, [click here](https://huggingface.co/spaces/nroggendorff/flux-lora-tester)"
|
36 |
+
|
37 |
+
iface = gr.Interface(fn=show_message,
|
38 |
+
inputs=None,
|
39 |
+
outputs="markdown")
|
40 |
+
|
41 |
+
demo = interface if torch.cuda.is_available else iface
|
42 |
+
|
43 |
if __name__ == "__main__":
|
44 |
+
demo.launch()
|