<｜begin▁of▁sentence｜>### Instruction:
Given the High-energy theory collaborations graph which you can read from a GML file named hep-th.gml, can you use the Louvain method in cdlib to perform community detection? And can you compute the average embeddedness of nodes within the communities? Notes: You need to print the average embeddedness score of the communities detected.
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Load a high-energy theory collaborations graph
G = nx.read_gml('hep-th.gml')

# Perform community detection using the Louvain method
communities = algorithms.louvain(G)

# Compute the average embeddedness of nodes within the community
avg_embeddedness = evaluation.avg_embeddedness(G, communities)

print(avg_embeddedness.score)
<|EOT|>
