abakerdp commited on
Commit
421076d
·
verified ·
1 Parent(s): b718109

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -55,13 +55,13 @@ def pose_follow_up_question(user_response):
55
  # Example follow-up questions based on user responses
56
  follow_up_questions = {
57
  "I believe scientists should prioritize ethical considerations in their research":
58
- "That's a commendable perspective! What measures do you think scientists should take to ensure ethical research practices?",
59
  "I'm not sure about the ethical implications of genetic engineering":
60
- "It's a complex topic indeed! What aspects of genetic engineering do you find most concerning?",
61
  "I think technology has the potential to both benefit and harm society":
62
- "You raise an interesting point! How do you think society can mitigate the risks associated with emerging technologies?"
63
  }
64
- return follow_up_questions.get(user_response, "I'd love to hear more about your thoughts on this topic.")
65
 
66
  # Gradio interface definition
67
  demo = gr.ChatInterface(
@@ -82,3 +82,4 @@ demo = gr.ChatInterface(
82
 
83
  if __name__ == "__main__":
84
  demo.launch()
 
 
55
  # Example follow-up questions based on user responses
56
  follow_up_questions = {
57
  "I believe scientists should prioritize ethical considerations in their research":
58
+ "That's great! What do you think are some specific ethical considerations scientists should keep in mind?",
59
  "I'm not sure about the ethical implications of genetic engineering":
60
+ "It's okay! Genetic engineering can be complicated. What aspects of it are you uncertain about?",
61
  "I think technology has the potential to both benefit and harm society":
62
+ "You're absolutely right! How do you think society can balance the benefits and risks of emerging technologies?"
63
  }
64
+ return follow_up_questions.get(user_response, "Could you tell me more about your thoughts on this topic?")
65
 
66
  # Gradio interface definition
67
  demo = gr.ChatInterface(
 
82
 
83
  if __name__ == "__main__":
84
  demo.launch()
85
+