para-lost commited on
Commit
99c35c1
·
1 Parent(s): 39eabbd
Files changed (1) hide show
  1. SlidesLib/__init__.py +2 -2
SlidesLib/__init__.py CHANGED
@@ -36,12 +36,12 @@ def get_code(request:str, examples:str = "") -> str:
36
  """
37
  return LLM.get_answer(request, examples)
38
 
39
- def generate_image(query: str, save_path: str = "downloaded_image.png") -> str:
40
  """
41
  Generate an image based on a text query, save the image to the save_path
42
  Return the path of the saved image.
43
  """
44
- return Dalle3.generate_image(query, save_path)
45
 
46
 
47
  def add_title(
 
36
  """
37
  return LLM.get_answer(request, examples)
38
 
39
+ def generate_image(key: str, query: str, save_path: str = "downloaded_image.png") -> str:
40
  """
41
  Generate an image based on a text query, save the image to the save_path
42
  Return the path of the saved image.
43
  """
44
+ return Dalle3.generate_image(key, query, save_path)
45
 
46
 
47
  def add_title(