Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,11 @@ from pathlib import Path
|
|
| 9 |
import threading
|
| 10 |
|
| 11 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
| 12 |
|
|
|
|
| 13 |
|
| 14 |
# ============================================================
|
| 15 |
# APP CONFIG
|
|
@@ -1631,8 +1635,8 @@ button, input, select, textarea { font: inherit; }
|
|
| 1631 |
# ============================================================
|
| 1632 |
|
| 1633 |
SOCIAL_PREVIEW_URL = (
|
| 1634 |
-
"https://
|
| 1635 |
-
"
|
| 1636 |
)
|
| 1637 |
|
| 1638 |
SOCIAL_META = f"""
|
|
|
|
| 9 |
import threading
|
| 10 |
|
| 11 |
import gradio as gr
|
| 12 |
+
from pathlib import Path
|
| 13 |
+
|
| 14 |
+
SOCIAL_PREVIEW_PATH = Path("social-preview.png").resolve()
|
| 15 |
|
| 16 |
+
gr.set_static_paths(paths=[SOCIAL_PREVIEW_PATH])
|
| 17 |
|
| 18 |
# ============================================================
|
| 19 |
# APP CONFIG
|
|
|
|
| 1635 |
# ============================================================
|
| 1636 |
|
| 1637 |
SOCIAL_PREVIEW_URL = (
|
| 1638 |
+
"https://googlecalc-howmuchfeed.hf.space/"
|
| 1639 |
+
"gradio_api/file=social-preview.png"
|
| 1640 |
)
|
| 1641 |
|
| 1642 |
SOCIAL_META = f"""
|