Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 59 |
"I'm not sure about the ethical implications of genetic engineering":
|
| 60 |
-
"It's
|
| 61 |
"I think technology has the potential to both benefit and harm society":
|
| 62 |
-
"You
|
| 63 |
}
|
| 64 |
-
return follow_up_questions.get(user_response, "
|
| 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 |
+
|