Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from fast_graphrag import GraphRAG
|
| 2 |
-
|
| 3 |
DOMAIN = "Analyze this story and identify the characters. Focus on how they interact with each other, the locations they explore, and their relationships."
|
| 4 |
|
| 5 |
EXAMPLE_QUERIES = [
|
|
@@ -11,7 +11,7 @@ EXAMPLE_QUERIES = [
|
|
| 11 |
]
|
| 12 |
|
| 13 |
ENTITY_TYPES = ["Character", "Animal", "Place", "Object", "Activity", "Event"]
|
| 14 |
-
|
| 15 |
grag = GraphRAG(
|
| 16 |
working_dir="./book_example",
|
| 17 |
domain=DOMAIN,
|
|
|
|
| 1 |
from fast_graphrag import GraphRAG
|
| 2 |
+
import os
|
| 3 |
DOMAIN = "Analyze this story and identify the characters. Focus on how they interact with each other, the locations they explore, and their relationships."
|
| 4 |
|
| 5 |
EXAMPLE_QUERIES = [
|
|
|
|
| 11 |
]
|
| 12 |
|
| 13 |
ENTITY_TYPES = ["Character", "Animal", "Place", "Object", "Activity", "Event"]
|
| 14 |
+
print(os.getenv())
|
| 15 |
grag = GraphRAG(
|
| 16 |
working_dir="./book_example",
|
| 17 |
domain=DOMAIN,
|