fatimataba21 commited on
Commit
ac65f3b
·
1 Parent(s): 0b86555

message de commit

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -630,3 +630,17 @@ class AppState:
630
  }
631
  self.results.append(result)
632
  return result
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
630
  }
631
  self.results.append(result)
632
  return result
633
+
634
+ if __name__ == "__main__":
635
+ # Initialize application state with questions
636
+ app_state = AppState()
637
+ app_state.reset_with_questions(questions)
638
+
639
+ # Define a basic function to return the current question for demonstration
640
+ def get_question():
641
+ q = app_state.get_current_question()
642
+ return q["question"] if q else "Fin des questions."
643
+
644
+ # Create and launch Gradio interface
645
+ demo = gr.Interface(fn=get_question, inputs=[], outputs="text", live=True)
646
+ demo.launch()