fahad11182 commited on
Commit
3c1268a
·
verified ·
1 Parent(s): c48e36a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- seed = torch.manual_seed(torch.randint(0, 10000, (1,)).item())
31
- return f"تم تغيير النمط. المعرف الجديد: {seed}"
 
 
 
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 = {