Spaces:
Sleeping
Sleeping
update code
Browse files
app.py
CHANGED
|
@@ -54,6 +54,7 @@ async def ppt_content(data):
|
|
| 54 |
return_data,
|
| 55 |
],
|
| 56 |
system_prompt=(
|
|
|
|
| 57 |
"You are an expert in making power-point perssentation",
|
| 58 |
"Create 6 sliders",
|
| 59 |
"Title Slide: short into about the presentation",
|
|
@@ -77,10 +78,9 @@ async def ppt_content(data):
|
|
| 77 |
# result: RunResult[str] = RunResult(_all_messages:[])
|
| 78 |
# result = agent.run_sync(user_prompt = x,message_history = result.new_messages())
|
| 79 |
|
| 80 |
-
|
| 81 |
-
deps :SupportDependencies = SupportDependencies(db=data)
|
| 82 |
result_1 = agent.run_sync(user_prompt = "Create a power point presentation with 6 slides",deps=deps)
|
| 83 |
-
st.text(result_1.data)
|
| 84 |
print(result_1.data)
|
| 85 |
|
| 86 |
|
|
|
|
| 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",
|
|
|
|
| 78 |
# result: RunResult[str] = RunResult(_all_messages:[])
|
| 79 |
# result = agent.run_sync(user_prompt = x,message_history = result.new_messages())
|
| 80 |
|
| 81 |
+
print("".join(data))
|
| 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)
|
| 85 |
|
| 86 |
|