brickfrog commited on
Commit
876ef0e
·
verified ·
1 Parent(s): 843f262

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. app.py +1 -10
  2. example.png +2 -2
  3. favicon.ico +0 -0
app.py CHANGED
@@ -3,7 +3,6 @@ import asyncio
3
  import os
4
  import re
5
  from datetime import datetime
6
- from pathlib import Path # Potentially for favicon_path
7
 
8
  import gradio as gr
9
  import pandas as pd
@@ -1072,14 +1071,6 @@ if __name__ == "__main__":
1072
  try:
1073
  ankigen_interface = create_ankigen_interface()
1074
  logger.info("Launching AnkiGen Gradio interface...")
1075
- # Ensure favicon.ico is in the same directory as app.py or provide correct path
1076
- favicon_path = Path(__file__).parent / "favicon.ico"
1077
- if favicon_path.exists():
1078
- ankigen_interface.launch(share=False, favicon_path=str(favicon_path))
1079
- else:
1080
- logger.warning(
1081
- f"Favicon not found at {favicon_path}, launching without it.",
1082
- )
1083
- ankigen_interface.launch(share=False)
1084
  except Exception as e:
1085
  logger.critical(f"Failed to launch Gradio interface: {e}", exc_info=True)
 
3
  import os
4
  import re
5
  from datetime import datetime
 
6
 
7
  import gradio as gr
8
  import pandas as pd
 
1071
  try:
1072
  ankigen_interface = create_ankigen_interface()
1073
  logger.info("Launching AnkiGen Gradio interface...")
1074
+ ankigen_interface.launch()
 
 
 
 
 
 
 
 
1075
  except Exception as e:
1076
  logger.critical(f"Failed to launch Gradio interface: {e}", exc_info=True)
example.png CHANGED

Git LFS Details

  • SHA256: e8c3df8d845ecaa9024c3acc71e95c9ad8aecb3cb92eaa68d053187c4729858b
  • Pointer size: 131 Bytes
  • Size of remote file: 176 kB

Git LFS Details

  • SHA256: 7e48e300038f4c75429a48b1286e045546a96d5dc59685200d9e0ee72af4eaca
  • Pointer size: 128 Bytes
  • Size of remote file: 131 Bytes
favicon.ico CHANGED

Git LFS Details

  • SHA256: f95d230eb416dc67d33439c826defa5c4458d9e2982731d7e83a4de2efe224bb
  • Pointer size: 128 Bytes
  • Size of remote file: 129 Bytes