Update presentation_assistant/presentation_assistant.py
Browse files
presentation_assistant/presentation_assistant.py
CHANGED
@@ -75,8 +75,6 @@ def generate_text2ppt_input_prompt(input_type, input_value, input_pages):
|
|
75 |
def text2ppt(token_key, input_prompt, input_theme):
|
76 |
reply = query({"inputs": "You are a kind helpful PPT designer. "+input_prompt})
|
77 |
|
78 |
-
reply = chat.choices[0].message.content
|
79 |
-
|
80 |
md_text = reply[4:] if reply[:3] == "---" else reply
|
81 |
md_text_list = md_text.split('\n')
|
82 |
|
@@ -136,6 +134,4 @@ def ppt2script(token_key, input_file, input_type):
|
|
136 |
|
137 |
reply = query({"inputs": "You are a kind helpful PPT Assistant."+input_prompt})
|
138 |
|
139 |
-
reply = chat.choices[0].message.content
|
140 |
-
|
141 |
return reply
|
|
|
75 |
def text2ppt(token_key, input_prompt, input_theme):
|
76 |
reply = query({"inputs": "You are a kind helpful PPT designer. "+input_prompt})
|
77 |
|
|
|
|
|
78 |
md_text = reply[4:] if reply[:3] == "---" else reply
|
79 |
md_text_list = md_text.split('\n')
|
80 |
|
|
|
134 |
|
135 |
reply = query({"inputs": "You are a kind helpful PPT Assistant."+input_prompt})
|
136 |
|
|
|
|
|
137 |
return reply
|