File size: 378 Bytes
49d1739
cbf824f
49d1739
cbf824f
2ccb445
 
953ea94
cbf824f
2ccb445
 
953ea94
2ccb445
 
 
 
 
953ea94
cbf824f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
import spaces

@spaces.GPU  # Nutzt ZeroGPU, wenn aktiviert
def on_button_click():
    return "Button wurde geklickt!"

with gr.Blocks() as demo:
    button = gr.Button("Klick mich")
    output = gr.Textbox(label="Ausgabe")
    
    button.click(
        fn=on_button_click,
        inputs=None,
        outputs=output
    )

demo.launch()  # Kein share=True