Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,16 +9,10 @@ from Gradio_UI import GradioUI
|
|
| 9 |
|
| 10 |
@tool
|
| 11 |
def interweave_strings(string1: str, string2: str) -> str:
|
| 12 |
-
"""
|
| 13 |
-
Interweaves two strings character-by-character.
|
| 14 |
-
|
| 15 |
Args:
|
| 16 |
string1 (str): The first input string to be interweaved with the second.
|
| 17 |
string2 (str): The second input string to be interweaved with the first.
|
| 18 |
-
|
| 19 |
-
Returns:
|
| 20 |
-
str: A new string with characters from string1 and string2 alternated.
|
| 21 |
-
If one string is longer, its extra characters are appended at the end.
|
| 22 |
"""
|
| 23 |
# Build the interleaved string for the overlapping part.
|
| 24 |
interwoven_chars = []
|
|
|
|
| 9 |
|
| 10 |
@tool
|
| 11 |
def interweave_strings(string1: str, string2: str) -> str:
|
| 12 |
+
"""A tool that interweaves two strings character-by-character.
|
|
|
|
|
|
|
| 13 |
Args:
|
| 14 |
string1 (str): The first input string to be interweaved with the second.
|
| 15 |
string2 (str): The second input string to be interweaved with the first.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
"""
|
| 17 |
# Build the interleaved string for the overlapping part.
|
| 18 |
interwoven_chars = []
|