rastof9 commited on
Commit
e6c006b
·
verified ·
1 Parent(s): afc68b0

Update Gradio app with multiple files

Browse files
Files changed (5) hide show
  1. bot.py +1 -1
  2. config.py +1 -1
  3. generate.py +1 -1
  4. requirements.txt +1 -1
  5. utils.py +1 -2
bot.py CHANGED
@@ -206,4 +206,4 @@ def main() -> None:
206
 
207
 
208
  if __name__ == "__main__":
209
- main()
 
206
 
207
 
208
  if __name__ == "__main__":
209
+ main()
config.py CHANGED
@@ -13,4 +13,4 @@ SUPABASE_KEY = os.environ.get("SUPABASE_KEY", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXV
13
 
14
  # --- SUPABASE STORAGE ---
15
  # The name of the public bucket you created for storing images
16
- SUPABASE_BUCKET_NAME = "generated-images"
 
13
 
14
  # --- SUPABASE STORAGE ---
15
  # The name of the public bucket you created for storing images
16
+ SUPABASE_BUCKET_NAME = "generated-images"
generate.py CHANGED
@@ -189,4 +189,4 @@ if __name__ == '__main__':
189
  else:
190
  print(f"\n❌ Test failed. Please check the logs for details.")
191
  else:
192
- print("To run a test, place an image named 'test_face.jpg' in the root directory.")
 
189
  else:
190
  print(f"\n❌ Test failed. Please check the logs for details.")
191
  else:
192
+ print("To run a test, place an image named 'test_face.jpg' in the root directory.")
requirements.txt CHANGED
@@ -10,4 +10,4 @@ storage3
10
  python-telegram-bot
11
  Pillow
12
  realesrgan
13
- torchvision
 
10
  python-telegram-bot
11
  Pillow
12
  realesrgan
13
+ torchvision
utils.py CHANGED
@@ -55,5 +55,4 @@ def add_watermark(image_path: str, watermark_text: str) -> str:
55
  except Exception as e:
56
  logger.error(f"Failed to add watermark to {image_path}: {e}")
57
  # Return the original path even if watermarking fails
58
- return image_path
59
-
 
55
  except Exception as e:
56
  logger.error(f"Failed to add watermark to {image_path}: {e}")
57
  # Return the original path even if watermarking fails
58
+ return image_path