Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,10 +21,12 @@ phi2 = pipeline(
|
|
| 21 |
eos_token_id=tokenizer.eos_token_id,
|
| 22 |
device_map="cpu"
|
| 23 |
)
|
|
|
|
| 24 |
# DSPy-based prompt generation
|
|
|
|
| 25 |
# from dspy import Agent
|
| 26 |
# from dspy import spawn_processes
|
| 27 |
-
from dspy.utils import SentenceSplitter, SentimentAnalyzer, NamedEntityRecognizer
|
| 28 |
|
| 29 |
def dspy_generate_agent_prompts(prompt):
|
| 30 |
"""
|
|
|
|
| 21 |
eos_token_id=tokenizer.eos_token_id,
|
| 22 |
device_map="cpu"
|
| 23 |
)
|
| 24 |
+
|
| 25 |
# DSPy-based prompt generation
|
| 26 |
+
|
| 27 |
# from dspy import Agent
|
| 28 |
# from dspy import spawn_processes
|
| 29 |
+
# from dspy.utils import SentenceSplitter, SentimentAnalyzer, NamedEntityRecognizer
|
| 30 |
|
| 31 |
def dspy_generate_agent_prompts(prompt):
|
| 32 |
"""
|