BtB-ExpC commited on
Commit
077efe5
·
1 Parent(s): abdeff5
Files changed (2) hide show
  1. main.py +7 -2
  2. requirements.txt +1 -0
main.py CHANGED
@@ -71,6 +71,7 @@ with gr.Blocks() as interface:
71
  gr.Markdown("## Pick the tab for your task of choice")
72
 
73
  with gr.Tabs():
 
74
  (model_choice_diagnose,
75
  exercise_format_diagnose,
76
  sampling_count_diagnose,
@@ -79,6 +80,7 @@ with gr.Blocks() as interface:
79
  diagnoser_responses
80
  ) = build_diagnoser_tab()
81
 
 
82
  (model_choice_distractors_1,
83
  model_choice_distractors_2,
84
  model_choice_distractors_3,
@@ -91,7 +93,6 @@ with gr.Blocks() as interface:
91
  final_distractors_specification,
92
  ) = build_distractors_tab()
93
 
94
-
95
  with gr.TabItem("🚧 Generate learning objectives"):
96
  # Insert an HTML info icon with a tooltip at the top of the tab content.
97
  gr.HTML(
@@ -106,7 +107,11 @@ with gr.Blocks() as interface:
106
  learning_objectives_input = gr.Textbox(label="Enter a study text in any format", placeholder="<h3>Infusie en infuussystemen</h3> <h4>Inleiding</h4> ...")
107
  learning_objectives_button = gr.Button("Submit")
108
  gr.Markdown("**Response(s):**")
109
- learning_objectives_responses = gr.Column()
 
 
 
 
110
 
111
  # -------------------------------
112
  # Set Up Interactions
 
71
  gr.Markdown("## Pick the tab for your task of choice")
72
 
73
  with gr.Tabs():
74
+ # Build Diagnoser tab
75
  (model_choice_diagnose,
76
  exercise_format_diagnose,
77
  sampling_count_diagnose,
 
80
  diagnoser_responses
81
  ) = build_diagnoser_tab()
82
 
83
+ # Build Distractors tab
84
  (model_choice_distractors_1,
85
  model_choice_distractors_2,
86
  model_choice_distractors_3,
 
93
  final_distractors_specification,
94
  ) = build_distractors_tab()
95
 
 
96
  with gr.TabItem("🚧 Generate learning objectives"):
97
  # Insert an HTML info icon with a tooltip at the top of the tab content.
98
  gr.HTML(
 
107
  learning_objectives_input = gr.Textbox(label="Enter a study text in any format", placeholder="<h3>Infusie en infuussystemen</h3> <h4>Inleiding</h4> ...")
108
  learning_objectives_button = gr.Button("Submit")
109
  gr.Markdown("**Response(s):**")
110
+ # Create 5 Response textboxes
111
+ distractors_responses = [
112
+ gr.Textbox(label=f"Response {i + 1}", interactive=False, visible=(i == 0))
113
+ for i in range(5)
114
+ ]
115
 
116
  # -------------------------------
117
  # Set Up Interactions
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  gradio==5.15.0
2
  openai==1.61.1
3
  langchain-openai==0.3.4
 
1
+ # requirements.txt
2
  gradio==5.15.0
3
  openai==1.61.1
4
  langchain-openai==0.3.4