Spaces:
Running
Running
more testing
Browse files
app.py
CHANGED
@@ -86,16 +86,16 @@ async def ppt_content(data):
|
|
86 |
message_history: list[ModelMessage] = []
|
87 |
# for i, chunk in enumerate(listOfString):
|
88 |
# print(f"Chunk {i}:\n{chunk}\n")
|
89 |
-
@agent.tool
|
90 |
-
async def agentTooled(ctx: RunContext)-> str:
|
91 |
-
|
92 |
-
|
93 |
|
94 |
-
|
95 |
-
|
96 |
|
97 |
|
98 |
-
result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from
|
99 |
message_history = message_history,
|
100 |
|
101 |
)
|
|
|
86 |
message_history: list[ModelMessage] = []
|
87 |
# for i, chunk in enumerate(listOfString):
|
88 |
# print(f"Chunk {i}:\n{chunk}\n")
|
89 |
+
# @agent.tool
|
90 |
+
# async def agentTooled(ctx: RunContext)-> str:
|
91 |
+
# """
|
92 |
+
# This is all the text from a pdf file that user has uploaded
|
93 |
|
94 |
+
# """
|
95 |
+
# return listOfString[0]
|
96 |
|
97 |
|
98 |
+
result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from {listOfString[0]+listOfString[1]}",
|
99 |
message_history = message_history,
|
100 |
|
101 |
)
|