rrg92 commited on
Commit
7b99542
·
1 Parent(s): 7197456
Files changed (1) hide show
  1. app.py +6 -2
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
- btn = gr.Button(fn=gpu, label="gpu",[outgpu]);
18
- btn = gr.Button(fn=ngpu, label="ngpu", [outnpu]);
 
 
 
 
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__":