Atulkumar001 commited on
Commit
fd9b30f
·
verified ·
1 Parent(s): eb5149d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -0
app.py CHANGED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+
5
+ def check_system():
6
+
7
+ index_exists = os.path.exists(
8
+ "vector_store/faiss_index.bin"
9
+ )
10
+
11
+ metadata_exists = os.path.exists(
12
+ "vector_store/metadata.pkl"
13
+ )
14
+
15
+ if index_exists and metadata_exists:
16
+ return "✅ Database Ready"
17
+
18
+ return "❌ Database not built yet"
19
+
20
+
21
+ with gr.Blocks() as demo:
22
+
23
+ gr.Markdown(
24
+ "# 🎬 Universal Entertainment AI"
25
+ )
26
+
27
+ gr.Markdown(
28
+ "Recruiter-level TV & Movie Intelligence Engine"
29
+ )
30
+
31
+ status = gr.Textbox(
32
+ value=check_system(),
33
+ label="System Status"
34
+ )
35
+
36
+ demo.launch()