nroggendorff commited on
Commit
f500d03
·
verified ·
1 Parent(s): 9fffbce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
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
- interface.launch()
 
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()