15 lines
424 B
15 lines
424 B
#!/usr/bin/env bash |
|
|
|
# Prompt the user for a question |
|
echo "Enter your question:" |
|
read question |
|
|
|
# Read the content from stdin |
|
content=$(cat) |
|
|
|
# Combine the content and the question |
|
combined_input="Content: $content\nQuestion: $question" |
|
|
|
# Call the AI module with the combined input |
|
# You can replace this line with the appropriate command to call the AI module in your fabric project |
|
echo "$combined_input" | fabric -p ai
|
|
|