ans123 commited on
Commit
a8f09ad
·
verified ·
1 Parent(s): 5b75f42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -39,11 +39,10 @@ def generate_movie_content(theme):
39
  ])
40
  script = script_response["choices"][0]["message"]["content"]
41
 
42
- return characters, storyline, script
43
 
44
  def main_interface(theme):
45
- characters, storyline, script = generate_movie_content(theme)
46
- return characters, storyline, script
47
 
48
  # Gradio Interface
49
  title = "Movie Script Generator"
@@ -55,9 +54,7 @@ demo = gr.Interface(
55
  gr.Textbox(label="Theme", placeholder="Enter the movie theme"),
56
  ],
57
  outputs=[
58
- gr.Textbox(label="Main Characters", lines=5),
59
- gr.Textbox(label="Storyline", lines=5),
60
- gr.Textbox(label="Movie Script", lines=10),
61
  ],
62
  title=title,
63
  description=description
 
39
  ])
40
  script = script_response["choices"][0]["message"]["content"]
41
 
42
+ return f"Main Characters:\n{characters}\n\nStoryline:\n{storyline}\n\nMovie Script:\n{script}"
43
 
44
  def main_interface(theme):
45
+ return generate_movie_content(theme)
 
46
 
47
  # Gradio Interface
48
  title = "Movie Script Generator"
 
54
  gr.Textbox(label="Theme", placeholder="Enter the movie theme"),
55
  ],
56
  outputs=[
57
+ gr.Textbox(label="Generated Content", lines=20),
 
 
58
  ],
59
  title=title,
60
  description=description