demo 1
Browse files
app.py
CHANGED
@@ -14,8 +14,12 @@ def nogpu():
|
|
14 |
with gr.Blocks():
|
15 |
outgpu = gr.Textbox(lines=5);
|
16 |
outnpu = gr.Textbox(lines=5);
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
|
20 |
|
21 |
if __name__ == "__main__":
|
|
|
14 |
with gr.Blocks():
|
15 |
outgpu = gr.Textbox(lines=5);
|
16 |
outnpu = gr.Textbox(lines=5);
|
17 |
+
btngpu = gr.Button(fn=gpu, label="gpu",[outgpu]);
|
18 |
+
btngpun = gr.Button(fn=ngpu, label="ngpu", [outnpu]);
|
19 |
+
|
20 |
+
btngpi.click(gpu, None, [outgpu]);
|
21 |
+
btngpun.click(nogpu, None, [outnpu]);
|
22 |
+
|
23 |
|
24 |
|
25 |
if __name__ == "__main__":
|