qichenhuang commited on
Commit
5c23d25
1 Parent(s): 6a639ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -27
app.py CHANGED
@@ -63,33 +63,8 @@ with iface as demo:
63
  input_text = gr.Textbox(lines=6, placeholder="Please enter your script or upload video below...")
64
  video = gr.UploadButton("upload your video")
65
  example_demo = gr.Markdown("## Example Demo\n\n")
66
- text = """Title: "The Melody Within"
67
- Characters:
68
- - Adam: A young musician passionate about music.
69
- - Lily: Adam's childhood friend, deeply cares for Adam.
70
- - The Maestro: A mysterious music mentor who guides Adam.
71
- Scene 1: Adam's House
72
- (Adam is sitting in front of his piano, gently tapping the keys. Lily enters.)
73
- Lily: Adam, are you composing again?
74
- Adam: Yes, Lily. I've been trying to find that lost melody.
75
- Lily: Lost melody? What do you mean?
76
- Adam: It's like a puzzle, hidden inside me. Every time I try to capture it, it vanishes.
77
- Lily: Maybe you need some inspiration. Why don't you seek out The Maestro? He might be able to help you find the answer.
78
- Adam: You're right. I'll visit him tomorrow.
79
- Scene 2: The Maestro's Studio
80
- (Adam knocks on The Maestro's door, and it slowly opens.)
81
- The Maestro: Adam, you've come. I've been waiting for you.
82
- Adam: Maestro, I need your help. I've been searching for that lost melody, but it always eludes me.
83
- The Maestro: Adam, music is not just about technique; it's about expressing emotions. When you truly open your heart and become one with the music, the melody will find you.
84
- Adam: I understand. I will feel the music with all my heart and stop searching for it.
85
- Scene 3: Concert Hall
86
- (Adam sits at the piano, closes his eyes, and gently touches the keys. The melody flows out, filled with power and emotion.)
87
- Lily (sitting in the audience): Adam, you've finally found that lost melody. It's so beautiful, so touching.
88
- (The audience applauds enthusiastically, and Adam opens his eyes, smiling.)
89
- Adam: Thank you all. This journey with music is incredible, and I hope it resonates with your hearts.
90
- (Curtain falls)"""
91
- # input_box = gr.Textbox(value = text, lines = 20)
92
-
93
  # 在右侧列中添加音频输出组件
94
  with gr.Column(scale=3):
95
  output_audio = gr.Audio(label="Generated Music")
 
63
  input_text = gr.Textbox(lines=6, placeholder="Please enter your script or upload video below...")
64
  video = gr.UploadButton("upload your video")
65
  example_demo = gr.Markdown("## Example Demo\n\n")
66
+
67
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  # 在右侧列中添加音频输出组件
69
  with gr.Column(scale=3):
70
  output_audio = gr.Audio(label="Generated Music")