Update app.py
Browse files
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
|
43 |
|
44 |
def main_interface(theme):
|
45 |
-
|
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="
|
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
|