Upload folder using huggingface_hub
Browse files- app.py +1 -10
- example.png +2 -2
- 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 |
-
|
| 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
|
|
Git LFS Details
|
favicon.ico
CHANGED
|
|
|
|
Git LFS Details
|