Rishi-Jain-27 commited on
Commit
475b4b5
·
1 Parent(s): debdad8

Added an output type

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ app = gr.Server(title="Code-to-Flowchart Generator")
33
 
34
  # ----- Functions ----- #
35
  @app.api(name="generate_flowchart")
36
- def generate_flowchart(src_code: str):
37
  # check if src_code is empty
38
  if not src_code.strip(): return ""
39
 
 
33
 
34
  # ----- Functions ----- #
35
  @app.api(name="generate_flowchart")
36
+ def generate_flowchart(src_code: str) -> str:
37
  # check if src_code is empty
38
  if not src_code.strip(): return ""
39