Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def my_fairytale_tool(arg:int)-> str: #it's import to specify the return type
|
|
27 |
]
|
28 |
|
29 |
# Randomly select fairytales from the list
|
30 |
-
selected_1 = fairytales[int(arg
|
31 |
-
fairytales.pop(int(arg
|
32 |
selected_2 = fairytales[random.randint(0,len(fairytales)-1)]
|
33 |
|
34 |
return f"Title to draw: What a crazy idea to see a story of {selected_1} vs {selected_2}!"
|
|
|
27 |
]
|
28 |
|
29 |
# Randomly select fairytales from the list
|
30 |
+
selected_1 = fairytales[int(arg // len(fairytales))]
|
31 |
+
fairytales.pop(int(arg // len(fairytales)))
|
32 |
selected_2 = fairytales[random.randint(0,len(fairytales)-1)]
|
33 |
|
34 |
return f"Title to draw: What a crazy idea to see a story of {selected_1} vs {selected_2}!"
|