Amdreas commited on
Commit
f671ecc
·
verified ·
1 Parent(s): bcf2d46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -6,7 +6,7 @@ from qdrant_client import QdrantClient
6
  from qdrant_client.http import models as qmodels
7
  import requests
8
 
9
- EMBED_MODEL_ID = "intfloat/multilingual-e5-small" # 384-dim, multilingual
10
  _embedder = None
11
  _client = None
12
  _collection = "docs"
@@ -124,7 +124,6 @@ with gr.Blocks(title="EDM & Fanuc – Hybrid RAG (PDF + Web)") as demo:
124
  gr.Markdown("# 🔧 EDM & Fanuc – Hybrid RAG (PDF + Web)")
125
 
126
  with gr.Row():
127
- # LEFT
128
  with gr.Column(scale=1):
129
  gr.Markdown("### Qdrant nastavenie")
130
  q_url = gr.Textbox(label="QDRANT_URL", value=os.getenv("QDRANT_URL",""), lines=2)
@@ -151,7 +150,6 @@ with gr.Blocks(title="EDM & Fanuc – Hybrid RAG (PDF + Web)") as demo:
151
  return ingest_pdfs(files, topic, size, ov)
152
  ingest_btn.click(_ingest, inputs=[upload, topic_dd, chunk_chars, overlap], outputs=ingest_out)
153
 
154
- # RIGHT
155
  with gr.Column(scale=2):
156
  gr.Markdown("### Chat (PDF + voliteľne web)")
157
  question = gr.Textbox(label="Otázka", placeholder="Napr. G41 vs G42 na Fanuc…", lines=3)
 
6
  from qdrant_client.http import models as qmodels
7
  import requests
8
 
9
+ EMBED_MODEL_ID = "intfloat/multilingual-e5-small" # 384-dim
10
  _embedder = None
11
  _client = None
12
  _collection = "docs"
 
124
  gr.Markdown("# 🔧 EDM & Fanuc – Hybrid RAG (PDF + Web)")
125
 
126
  with gr.Row():
 
127
  with gr.Column(scale=1):
128
  gr.Markdown("### Qdrant nastavenie")
129
  q_url = gr.Textbox(label="QDRANT_URL", value=os.getenv("QDRANT_URL",""), lines=2)
 
150
  return ingest_pdfs(files, topic, size, ov)
151
  ingest_btn.click(_ingest, inputs=[upload, topic_dd, chunk_chars, overlap], outputs=ingest_out)
152
 
 
153
  with gr.Column(scale=2):
154
  gr.Markdown("### Chat (PDF + voliteľne web)")
155
  question = gr.Textbox(label="Otázka", placeholder="Napr. G41 vs G42 na Fanuc…", lines=3)