Spaces:
Sleeping
Sleeping
Commit
·
c4a8ce1
1
Parent(s):
83d201c
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,10 @@ def flip_text(x):
|
|
24 |
return x[::-1]
|
25 |
|
26 |
def txtRouletteHandler(x, y):
|
27 |
-
rn = random.randrange(
|
28 |
-
if (rn == 0):
|
29 |
-
return letterize(x)
|
30 |
if (rn == 1):
|
|
|
|
|
31 |
return flip_text(x)
|
32 |
|
33 |
with gr.Blocks(title="Josiah's Gradio Playground") as playground:
|
|
|
24 |
return x[::-1]
|
25 |
|
26 |
def txtRouletteHandler(x, y):
|
27 |
+
rn = random.randrange(2)
|
|
|
|
|
28 |
if (rn == 1):
|
29 |
+
return letterize(x)
|
30 |
+
if (rn == 2):
|
31 |
return flip_text(x)
|
32 |
|
33 |
with gr.Blocks(title="Josiah's Gradio Playground") as playground:
|