Spaces:
Sleeping
Sleeping
Salma Hassan
commited on
Commit
·
470c97a
1
Parent(s):
2d4d854
Update app.py to adjust Gradio Blocks height and enhance chatbot layout by adding scaling to the chat interface. Modify example patient scenarios for improved relevance and clarity in the Clinical Trial Matching Chatbot.
Browse files
app.py
CHANGED
@@ -373,7 +373,7 @@ if __name__ == "__main__":
|
|
373 |
return get_clinical_trials(message)
|
374 |
|
375 |
# Create optimized chatbot with simple, reliable CSS
|
376 |
-
with gr.Blocks(theme=gr.themes.Soft(), fill_height=
|
377 |
# Add simple CSS for styling with black text
|
378 |
gr.HTML("""
|
379 |
<style>
|
@@ -507,8 +507,9 @@ if __name__ == "__main__":
|
|
507 |
gr.Markdown("## Start Matching")
|
508 |
chatbot = gr.ChatInterface(
|
509 |
fn=chat_function,
|
|
|
510 |
examples=[
|
511 |
-
["A
|
512 |
["A 19-year-old pregnant patient, receiving prenatal care at Johns Hopkins Hospital, is 28 weeks gestation and preparing to receive her first mRNA COVID-19 vaccine dose. She has no previous history of COVID-19 and no significant medical history. She meets eligibility criteria and is interested in contributing to research on pregnancy and vaccine-related immune responses."],
|
513 |
["A 67-year-old male with relapsed/refractory multiple myeloma presents for enrollment into a post-trial access study. He previously participated in a Pfizer-sponsored parent study evaluating elranatamab, during which he achieved a partial response and remained clinically stable. At the time the parent trial ended, he was continuing on elranatamab with no evidence of disease progression or significant toxicity. He reports no history of psychiatric illness or lab abnormalities, and he wishes to continue treatment through this access program."]
|
514 |
]
|
|
|
373 |
return get_clinical_trials(message)
|
374 |
|
375 |
# Create optimized chatbot with simple, reliable CSS
|
376 |
+
with gr.Blocks(theme=gr.themes.Soft(), fill_height=False) as demo:
|
377 |
# Add simple CSS for styling with black text
|
378 |
gr.HTML("""
|
379 |
<style>
|
|
|
507 |
gr.Markdown("## Start Matching")
|
508 |
chatbot = gr.ChatInterface(
|
509 |
fn=chat_function,
|
510 |
+
scale=1,
|
511 |
examples=[
|
512 |
+
["A 28-year-old non-pregnant female, otherwise healthy, presents to a community clinic to explore enrollment in a COVID-19 booster study. She completed her primary 2-dose Moderna series 5 months ago, has not received any other COVID vaccines since, and reports no history of vaccine-related side effects. Her most recent SARS-CoV-2 test today was negative. She reports consistent oral contraceptive use for over 6 months and denies any significant past medical history. She is willing to abstain from blood donation and complies with all study guidelines."],
|
513 |
["A 19-year-old pregnant patient, receiving prenatal care at Johns Hopkins Hospital, is 28 weeks gestation and preparing to receive her first mRNA COVID-19 vaccine dose. She has no previous history of COVID-19 and no significant medical history. She meets eligibility criteria and is interested in contributing to research on pregnancy and vaccine-related immune responses."],
|
514 |
["A 67-year-old male with relapsed/refractory multiple myeloma presents for enrollment into a post-trial access study. He previously participated in a Pfizer-sponsored parent study evaluating elranatamab, during which he achieved a partial response and remained clinically stable. At the time the parent trial ended, he was continuing on elranatamab with no evidence of disease progression or significant toxicity. He reports no history of psychiatric illness or lab abnormalities, and he wishes to continue treatment through this access program."]
|
515 |
]
|