OpenWebUI integration
This commit is contained in:
@@ -4,7 +4,7 @@ from redis import Redis
|
||||
from rq import Queue
|
||||
|
||||
MEILI_URL = os.getenv("MEILI_URL", "http://meili:7700")
|
||||
MEILI_KEY = os.getenv("MEILI_KEY", "")
|
||||
MEILI_KEY = os.getenv("MEILI_KEY", "") # from .env
|
||||
REDIS_URL = os.getenv("REDIS_URL", "redis://redis:6379/0")
|
||||
|
||||
app = Flask(__name__)
|
||||
@@ -26,8 +26,8 @@ mark{background: #fff2a8}
|
||||
</style></head><body>
|
||||
<h1>PodX</h1>
|
||||
<form action="/enqueue" method="post">
|
||||
<input type="url" name="url" placeholder="Paste podcast/video URL…" required>
|
||||
<button type="submit">Fetch & Transcribe</button>
|
||||
<input type="url" name="url" placeholder="Paste podcast/video/article URL…" required>
|
||||
<button type="submit">Fetch</button>
|
||||
</form>
|
||||
<details><summary>Batch</summary>
|
||||
<form action="/enqueue_batch" method="post">
|
||||
@@ -36,7 +36,7 @@ mark{background: #fff2a8}
|
||||
</form>
|
||||
</details>
|
||||
|
||||
<h2>Unified search (podcasts + PDFs + EPUB + Kiwix)</h2>
|
||||
<h2>Unified search (podcasts + PDFs + EPUB + Kiwix + Web)</h2>
|
||||
<form id="sform">
|
||||
<input type="search" name="q" placeholder='e.g., "vector database" OR retrieval augmented generation' autofocus />
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user