Spaces:
GIZ
/
Running on CPU Upgrade

ppsingh commited on
Commit
cd21412
·
1 Parent(s): 07d2ba0

scroll in resources

Browse files
app.py CHANGED
@@ -212,6 +212,42 @@ custom_css = """
212
  padding: 8px !important; /* Cell padding */
213
  }
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  /* Alternative size classes - change elem_classes="dataframe-small" in DataFrame component */
216
  .dataframe-small table { font-size: 10px !important; }
217
  .dataframe-small th { font-size: 11px !important; }
@@ -334,7 +370,7 @@ with gr.Blocks(title="Gina Bot", theme=theme, css=custom_css) as demo:
334
  sample_groups.append(group_examples)
335
 
336
  # Sources Tab
337
- with gr.Tab("Fuentes", id=1):
338
  sources_textbox = gr.HTML(
339
  show_label=False,
340
  value="Los documentos originales aparecerán aquí después de que hagas una pregunta..."
 
212
  padding: 8px !important; /* Cell padding */
213
  }
214
 
215
+ @media screen and (min-width: 1024px) {
216
+ div#tab-examples{
217
+ height:calc(100vh - 190px) !important;
218
+ overflow-y: auto;
219
+ }
220
+
221
+ div#sources-textbox{
222
+ height:calc(100vh - 190px) !important;
223
+ overflow-y: auto !important;
224
+ }
225
+
226
+ div#tab-config{
227
+ height:calc(100vh - 190px) !important;
228
+ overflow-y: auto !important;
229
+ }
230
+
231
+ div#chatbot-row{
232
+ height:calc(100vh - 90px) !important;
233
+ }
234
+
235
+ div#chatbot{
236
+ height:calc(100vh - 170px) !important;
237
+ }
238
+
239
+ .max-height{
240
+ height:calc(100vh - 90px) !important;
241
+ overflow-y: auto;
242
+ }
243
+
244
+ /* .tabitem:nth-child(n+3) {
245
+ padding-top:30px;
246
+ padding-left:40px;
247
+ padding-right:40px;
248
+ } */
249
+ }
250
+
251
  /* Alternative size classes - change elem_classes="dataframe-small" in DataFrame component */
252
  .dataframe-small table { font-size: 10px !important; }
253
  .dataframe-small th { font-size: 11px !important; }
 
370
  sample_groups.append(group_examples)
371
 
372
  # Sources Tab
373
+ with gr.Tab("Fuentes", id=1, elem_id="sources-textbox"):
374
  sources_textbox = gr.HTML(
375
  show_label=False,
376
  value="Los documentos originales aparecerán aquí después de que hagas una pregunta..."
utils/__pycache__/generator.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/generator.cpython-310.pyc and b/utils/__pycache__/generator.cpython-310.pyc differ
 
utils/generator.py CHANGED
@@ -266,7 +266,7 @@ async def generate(query: str, context: Union[str, List[Dict[str, Any]]]) -> str
266
 
267
  # # Process the retrieval results
268
  # processed_results = extract_relevant_fields(context)
269
- formatted_context = context
270
 
271
  # if not formatted_context.strip():
272
  # return "Error: No valid content found in retrieval results"
 
266
 
267
  # # Process the retrieval results
268
  # processed_results = extract_relevant_fields(context)
269
+ formatted_context = context
270
 
271
  # if not formatted_context.strip():
272
  # return "Error: No valid content found in retrieval results"