ldkong commited on
Commit
8347990
·
1 Parent(s): 994c3d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -10,6 +10,11 @@ def calculator(num1, operation, num2):
10
  elif operation == "divide":
11
  return num1 / num2
12
 
 
 
 
 
 
13
  demo = gr.Interface(
14
  calculator,
15
  ["number", gr.Radio(["add", "subtract", "multiply", "divide"]), "number"],
@@ -18,3 +23,9 @@ demo = gr.Interface(
18
  )
19
 
20
  demo.launch()
 
 
 
 
 
 
 
10
  elif operation == "divide":
11
  return num1 / num2
12
 
13
+ def sampler(body, bottomwear, hair, topwear):
14
+ img_name = str(body) + str(bottomwear) + str(hair) + str(topwear)
15
+ return img_name
16
+
17
+
18
  demo = gr.Interface(
19
  calculator,
20
  ["number", gr.Radio(["add", "subtract", "multiply", "divide"]), "number"],
 
23
  )
24
 
25
  demo.launch()
26
+
27
+ demo2 = gr.Interface(
28
+ sampler,
29
+ [gr.Radio(["body", "bottomwear", "hair", "topwear"])],
30
+ live=True,
31
+ )