Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,11 @@ seed = random.randint(0, 10000)
|
|
27 |
# Function to reset the seed (style change)
|
28 |
def change_style():
|
29 |
global seed
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
32 |
|
33 |
# Dictionary to map Arabic to English colors
|
34 |
arabic_to_english_colors = {
|
|
|
27 |
# Function to reset the seed (style change)
|
28 |
def change_style():
|
29 |
global seed
|
30 |
+
# Set a new seed
|
31 |
+
seed_value = torch.randint(0, 10000, (1,)).item()
|
32 |
+
seed = torch.manual_seed(seed_value)
|
33 |
+
# Return a human-readable seed value
|
34 |
+
return f"تم تغيير النمط. المعرف الجديد: {seed_value}"
|
35 |
|
36 |
# Dictionary to map Arabic to English colors
|
37 |
arabic_to_english_colors = {
|