Spaces:
Running
Running
update data
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ result_data:list[customClass.PPT] = []
|
|
| 23 |
|
| 24 |
|
| 25 |
# to generate ppt
|
| 26 |
-
model = GroqModel("
|
| 27 |
|
| 28 |
|
| 29 |
# to summarize
|
|
@@ -97,10 +97,15 @@ async def ppt_content(data):
|
|
| 97 |
|
| 98 |
result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from {listOfString[0]}",
|
| 99 |
message_history = message_history,
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
-
print(
|
| 104 |
|
| 105 |
|
| 106 |
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
# to generate ppt
|
| 26 |
+
model = GroqModel("mixtral-8x7b-32768", api_key = api_key)
|
| 27 |
|
| 28 |
|
| 29 |
# to summarize
|
|
|
|
| 97 |
|
| 98 |
result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from {listOfString[0]}",
|
| 99 |
message_history = message_history,
|
| 100 |
+
)
|
| 101 |
+
result_1 = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from {listOfString[1]}",
|
| 102 |
+
message_history = result.all_messages(),
|
| 103 |
+
)
|
| 104 |
+
result_2 = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from {listOfString[2]}",
|
| 105 |
+
message_history = result_1.all_messages(),
|
| 106 |
+
)
|
| 107 |
|
| 108 |
+
print(result_2.data)
|
| 109 |
|
| 110 |
|
| 111 |
|