aquibmoin commited on
Commit
7bfd1fb
·
verified ·
1 Parent(s): 0d79bd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -498,15 +498,16 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", use_enc
498
  return full_response, extracted_table_df, word_doc_path, iframe_html, mapify_button_html
499
 
500
  with gr.Blocks() as demo:
501
- gr.Markdown("# ExosAI - NASA SMD FC-RAG SCDD Generator [version-1.1]")
502
 
503
  # User Inputs
 
504
  user_input = gr.Textbox(lines=5, placeholder="Enter your Science Goal...", label="Science Goal")
505
  context = gr.Textbox(lines=10, placeholder="Enter Context Text...", label="Context")
506
  subdomain = gr.Textbox(lines=2, placeholder="Define your Subdomain...", label="Subdomain Definition")
507
 
508
  # PDF Upload Section (Up to 3 PDFs)
509
- gr.Markdown("- Context Retrieval Documents [e.g. LUVOIR, HabEx Reports]")
510
  uploaded_pdfs = gr.Files(file_types=[".pdf"], label="Upload Reference PDFs (Up to 3)", interactive=True)
511
 
512
  # Science Objectives Button & Input (Initially Hidden)
@@ -526,6 +527,7 @@ with gr.Blocks() as demo:
526
  )
527
 
528
  # Additional Model Parameters
 
529
  max_tokens = gr.Slider(50, 2000, value=150, step=10, label="Max Tokens")
530
  temperature = gr.Slider(0.0, 1.0, value=0.7, step=0.1, label="Temperature")
531
  top_p = gr.Slider(0.0, 1.0, value=0.9, step=0.1, label="Top-p")
@@ -533,6 +535,7 @@ with gr.Blocks() as demo:
533
  presence_penalty = gr.Slider(0.0, 1.0, value=0.0, step=0.1, label="Presence Penalty")
534
 
535
  # Outputs
 
536
  full_response = gr.Textbox(label="ExosAI finds...")
537
  extracted_table_df = gr.Dataframe(label="SC Requirements Table")
538
  word_doc_path = gr.File(label="Download SCDD", type="filepath")
 
498
  return full_response, extracted_table_df, word_doc_path, iframe_html, mapify_button_html
499
 
500
  with gr.Blocks() as demo:
501
+ gr.Markdown("# **ExosAI - NASA SMD FC-RAG SCDD Generator [version-1.1]**")
502
 
503
  # User Inputs
504
+ gr.Markdown("## **User Inputs**")
505
  user_input = gr.Textbox(lines=5, placeholder="Enter your Science Goal...", label="Science Goal")
506
  context = gr.Textbox(lines=10, placeholder="Enter Context Text...", label="Context")
507
  subdomain = gr.Textbox(lines=2, placeholder="Define your Subdomain...", label="Subdomain Definition")
508
 
509
  # PDF Upload Section (Up to 3 PDFs)
510
+ gr.Markdown("## **Context Retrieval Documents [e.g. LUVOIR, HabEx Reports]**")
511
  uploaded_pdfs = gr.Files(file_types=[".pdf"], label="Upload Reference PDFs (Up to 3)", interactive=True)
512
 
513
  # Science Objectives Button & Input (Initially Hidden)
 
527
  )
528
 
529
  # Additional Model Parameters
530
+ gr.Markdown("### **Model Parameters**")
531
  max_tokens = gr.Slider(50, 2000, value=150, step=10, label="Max Tokens")
532
  temperature = gr.Slider(0.0, 1.0, value=0.7, step=0.1, label="Temperature")
533
  top_p = gr.Slider(0.0, 1.0, value=0.9, step=0.1, label="Top-p")
 
535
  presence_penalty = gr.Slider(0.0, 1.0, value=0.0, step=0.1, label="Presence Penalty")
536
 
537
  # Outputs
538
+ gr.Markdown("## **Model Outputs**")
539
  full_response = gr.Textbox(label="ExosAI finds...")
540
  extracted_table_df = gr.Dataframe(label="SC Requirements Table")
541
  word_doc_path = gr.File(label="Download SCDD", type="filepath")