Spaces:
Sleeping
Sleeping
pass prompt
Browse files
services/model_handler.py
CHANGED
@@ -472,7 +472,7 @@ Output:"""
|
|
472 |
return "Error: Unable to generate translation prompt"
|
473 |
|
474 |
# Get English translation
|
475 |
-
translation = self.translator.run(
|
476 |
logging.info(f"Translation result type: {type(translation)}")
|
477 |
logging.info(f"Translation result: {translation}")
|
478 |
|
@@ -506,7 +506,7 @@ Output:"""
|
|
506 |
return "Error: Unable to generate research prompt"
|
507 |
|
508 |
# Get research results
|
509 |
-
research_results = self.researcher.run(
|
510 |
logging.info(f"Research results type: {type(research_results)}")
|
511 |
logging.info(f"Research results: {research_results}")
|
512 |
|
@@ -542,7 +542,7 @@ Output:"""
|
|
542 |
return "Error: Unable to generate summary prompt"
|
543 |
|
544 |
# Get summary
|
545 |
-
summary = self.summarizer.run(
|
546 |
logging.info(f"Summary type: {type(summary)}")
|
547 |
logging.info(f"Summary: {summary}")
|
548 |
|
@@ -578,7 +578,7 @@ Output:"""
|
|
578 |
return "Error: Unable to generate presentation prompt"
|
579 |
|
580 |
# Get presentation
|
581 |
-
presentation = self.presenter.run(
|
582 |
logging.info(f"Presentation type: {type(presentation)}")
|
583 |
logging.info(f"Presentation: {presentation}")
|
584 |
|
|
|
472 |
return "Error: Unable to generate translation prompt"
|
473 |
|
474 |
# Get English translation
|
475 |
+
translation = self.translator.run(translation_prompt, stream=False)
|
476 |
logging.info(f"Translation result type: {type(translation)}")
|
477 |
logging.info(f"Translation result: {translation}")
|
478 |
|
|
|
506 |
return "Error: Unable to generate research prompt"
|
507 |
|
508 |
# Get research results
|
509 |
+
research_results = self.researcher.run(research_prompt, stream=False)
|
510 |
logging.info(f"Research results type: {type(research_results)}")
|
511 |
logging.info(f"Research results: {research_results}")
|
512 |
|
|
|
542 |
return "Error: Unable to generate summary prompt"
|
543 |
|
544 |
# Get summary
|
545 |
+
summary = self.summarizer.run(summary_prompt, stream=False)
|
546 |
logging.info(f"Summary type: {type(summary)}")
|
547 |
logging.info(f"Summary: {summary}")
|
548 |
|
|
|
578 |
return "Error: Unable to generate presentation prompt"
|
579 |
|
580 |
# Get presentation
|
581 |
+
presentation = self.presenter.run(presentation_prompt, stream=False)
|
582 |
logging.info(f"Presentation type: {type(presentation)}")
|
583 |
logging.info(f"Presentation: {presentation}")
|
584 |
|