rivapereira123 commited on
Commit
658f788
·
verified ·
1 Parent(s): 9722b11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -40,6 +40,9 @@ scenario_builder = None
40
  import gradio as gr
41
 
42
 
 
 
 
43
  def build_dynamic_mcq_ui(scenario_data: list[dict[str, any]]):
44
  with gr.Blocks() as mcq_interface:
45
  gr.Markdown("## 🧪 Interactive Scenario Quiz")
@@ -145,7 +148,7 @@ def generate_scenario_ui(query: str, num_questions: int = 5):
145
  outputs=result_output
146
  )
147
 
148
- return quiz_components
149
 
150
  except Exception as e:
151
  return [gr.Markdown(f"❌ Unexpected error: {str(e)}")]
 
40
  import gradio as gr
41
 
42
 
43
+ import gradio as gr
44
+
45
+
46
  def build_dynamic_mcq_ui(scenario_data: list[dict[str, any]]):
47
  with gr.Blocks() as mcq_interface:
48
  gr.Markdown("## 🧪 Interactive Scenario Quiz")
 
148
  outputs=result_output
149
  )
150
 
151
+ return gr.Column(*quiz_components, visible=True, elem_classes=["quiz-container"])
152
 
153
  except Exception as e:
154
  return [gr.Markdown(f"❌ Unexpected error: {str(e)}")]