Update presentation_assistant/presentation_assistant.py
Browse files
presentation_assistant/presentation_assistant.py
CHANGED
@@ -76,7 +76,7 @@ def text2ppt(token_key, input_prompt, input_theme):
|
|
76 |
output = query({"inputs": "You are a kind helpful PPT designer. "+input_prompt,
|
77 |
"parameters": {
|
78 |
"return_full_text": True,
|
79 |
-
"max_new_tokens": 500})
|
80 |
# reply = output[0]['generated_text'][len("You are a kind helpful PPT designer. "+input_prompt):]
|
81 |
reply = output[0]['generated_text']
|
82 |
print(reply)
|
@@ -140,7 +140,7 @@ def ppt2script(token_key, input_file, input_type):
|
|
140 |
output = query({"inputs": "You are a kind helpful PPT Assistant."+input_prompt,
|
141 |
"parameters": {
|
142 |
"return_full_text": True,
|
143 |
-
"max_new_tokens": 500}
|
144 |
# reply = output[0]['generated_text'][len("You are a kind helpful PPT Assistant."+input_prompt):]
|
145 |
reply = output[0]['generated_text']
|
146 |
|
|
|
76 |
output = query({"inputs": "You are a kind helpful PPT designer. "+input_prompt,
|
77 |
"parameters": {
|
78 |
"return_full_text": True,
|
79 |
+
"max_new_tokens": 500}})
|
80 |
# reply = output[0]['generated_text'][len("You are a kind helpful PPT designer. "+input_prompt):]
|
81 |
reply = output[0]['generated_text']
|
82 |
print(reply)
|
|
|
140 |
output = query({"inputs": "You are a kind helpful PPT Assistant."+input_prompt,
|
141 |
"parameters": {
|
142 |
"return_full_text": True,
|
143 |
+
"max_new_tokens": 500}})
|
144 |
# reply = output[0]['generated_text'][len("You are a kind helpful PPT Assistant."+input_prompt):]
|
145 |
reply = output[0]['generated_text']
|
146 |
|