Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -151,14 +151,17 @@ with gr.Blocks() as iface:
|
|
151 |
ferpa_checkbox = gr.Checkbox(label="FERPA (US)")
|
152 |
coppa_checkbox = gr.Checkbox(label="COPPA (US <13)")
|
153 |
|
154 |
-
|
|
|
155 |
|
156 |
load_button = gr.Button("Load PDFs")
|
157 |
load_output = gr.Textbox(label="Load Status")
|
158 |
-
|
159 |
-
|
|
|
160 |
query_button = gr.Button("Submit Query")
|
161 |
-
|
|
|
162 |
rag_output = gr.Textbox(label="RAG Pipeline (Llama3.1) Response")
|
163 |
gemini_output = gr.Textbox(label="Long Context (Gemini 1.5 Pro) Response")
|
164 |
final_output = gr.HTML(label="Final (GPT-4o) Response")
|
|
|
151 |
ferpa_checkbox = gr.Checkbox(label="FERPA (US)")
|
152 |
coppa_checkbox = gr.Checkbox(label="COPPA (US <13)")
|
153 |
|
154 |
+
gr.Markdown("Optional: upload additional PDFs if needed (national regulation, school policy)")
|
155 |
+
additional_pdfs = gr.File(file_count="multiple", label="Upload additional PDFs", type="file")
|
156 |
|
157 |
load_button = gr.Button("Load PDFs")
|
158 |
load_output = gr.Textbox(label="Load Status")
|
159 |
+
|
160 |
+
gr.Markdown("Ask your data protection related question")
|
161 |
+
query_input = gr.Textbox(label="Your Question", placeholder="Ask your question here...")
|
162 |
query_button = gr.Button("Submit Query")
|
163 |
+
|
164 |
+
gr.Markdown("Results")
|
165 |
rag_output = gr.Textbox(label="RAG Pipeline (Llama3.1) Response")
|
166 |
gemini_output = gr.Textbox(label="Long Context (Gemini 1.5 Pro) Response")
|
167 |
final_output = gr.HTML(label="Final (GPT-4o) Response")
|