Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
#
|
4 |
def on_button_click():
|
5 |
return "Button wurde geklickt!"
|
6 |
|
7 |
-
|
8 |
-
with gr.Blocks() as app:
|
9 |
button = gr.Button("Klick mich")
|
10 |
output = gr.Textbox(label="Ausgabe")
|
11 |
|
@@ -15,4 +15,4 @@ with gr.Blocks() as app:
|
|
15 |
outputs=output
|
16 |
)
|
17 |
|
18 |
-
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
|
4 |
+
@spaces.GPU # Nutzt ZeroGPU, wenn aktiviert
|
5 |
def on_button_click():
|
6 |
return "Button wurde geklickt!"
|
7 |
|
8 |
+
with gr.Blocks() as demo:
|
|
|
9 |
button = gr.Button("Klick mich")
|
10 |
output = gr.Textbox(label="Ausgabe")
|
11 |
|
|
|
15 |
outputs=output
|
16 |
)
|
17 |
|
18 |
+
demo.launch() # Kein share=True
|