Spaces:
Running
Running
add more data
Browse files
app.py
CHANGED
@@ -38,7 +38,6 @@ def split_long_string(long_string, chunk_size=3500):
|
|
38 |
return chunks
|
39 |
|
40 |
def return_data() -> str:
|
41 |
-
print("".join(data))
|
42 |
return "".join(data)
|
43 |
|
44 |
@dataclass
|
@@ -50,11 +49,7 @@ async def ppt_content(data):
|
|
50 |
agent = Agent(model,
|
51 |
result_type=customClass.PPT,
|
52 |
deps_type=SupportDependencies,
|
53 |
-
tools=[
|
54 |
-
return_data,
|
55 |
-
],
|
56 |
system_prompt=(
|
57 |
-
"PDF test is in 'deps_type' ",
|
58 |
"You are an expert in making power-point perssentation",
|
59 |
"Create 6 sliders",
|
60 |
"Title Slide: short into about the presentation",
|
@@ -77,8 +72,10 @@ async def ppt_content(data):
|
|
77 |
# for x in listOfString:
|
78 |
# result: RunResult[str] = RunResult(_all_messages:[])
|
79 |
# result = agent.run_sync(user_prompt = x,message_history = result.new_messages())
|
80 |
-
|
81 |
-
|
|
|
|
|
82 |
deps :SupportDependencies = SupportDependencies(db="".join(data))
|
83 |
result_1 = agent.run_sync(user_prompt = "Create a power point presentation with 6 slides",deps=deps)
|
84 |
print(result_1.data)
|
|
|
38 |
return chunks
|
39 |
|
40 |
def return_data() -> str:
|
|
|
41 |
return "".join(data)
|
42 |
|
43 |
@dataclass
|
|
|
49 |
agent = Agent(model,
|
50 |
result_type=customClass.PPT,
|
51 |
deps_type=SupportDependencies,
|
|
|
|
|
|
|
52 |
system_prompt=(
|
|
|
53 |
"You are an expert in making power-point perssentation",
|
54 |
"Create 6 sliders",
|
55 |
"Title Slide: short into about the presentation",
|
|
|
72 |
# for x in listOfString:
|
73 |
# result: RunResult[str] = RunResult(_all_messages:[])
|
74 |
# result = agent.run_sync(user_prompt = x,message_history = result.new_messages())
|
75 |
+
@agent.system_prompt
|
76 |
+
def additionlPrompt():
|
77 |
+
return "".join(data)
|
78 |
+
|
79 |
deps :SupportDependencies = SupportDependencies(db="".join(data))
|
80 |
result_1 = agent.run_sync(user_prompt = "Create a power point presentation with 6 slides",deps=deps)
|
81 |
print(result_1.data)
|