robertselvam commited on
Commit
e47ff04
·
verified ·
1 Parent(s): e4810c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -247,9 +247,10 @@ class Text2Video:
247
  def gradio_interface(self):
248
 
249
  with gr.Blocks() as demo:
250
- example_txt = """
251
- once upon a time there was a village. It was a nice place to live, except for one thing. people did not like to share.,, One day a visitor came to town. 'Hello. Does anybody have food to share?' He asked. 'No', said everyone.,,
252
- That's okay', said the visitor. 'I will make stone soup for everyone'.Then he took a stone and dropped it into a giant pot,, The visitor sniffed his broth.Some people came outside to see what he was doing. Some watched from their windows.,,
 
253
  'Mmmm, I love stone soup. The only thing better is stone soup with cabbage', said the visitor. That gave one man in the village an idea. He brought a cabbage and put it in the pot.,,
254
  Then the visitor said, 'I once had stone soup with cabbage and carrots. It was delicious!', A woman brought carrots and put them in the pot.,,
255
  Then the visitor said, 'I once had stone soup with cabbage, carrots and corn. It was delicious!', A boy brought corn and put it in the pot.,,
@@ -261,17 +262,17 @@ class Text2Video:
261
  gr.HTML("""
262
  <center><h1 style="color:#fff">Comics Video Generator</h1></center>""")
263
 
264
- with gr.Row():
265
  input_text = gr.Textbox(label="Comics Text",placeholder="Enter the comics by double comma separated")
266
 
267
- with gr.Row():
268
  button = gr.Button("Generate Video")
269
 
270
- with gr.Row():
271
  output = gr.PlayableVideo()
272
 
273
 
274
- with gr.Row():
275
  example = gr.Examples([example_txt], input_text)
276
 
277
  button.click(self.generate_video,[input_text],output)
 
247
  def gradio_interface(self):
248
 
249
  with gr.Blocks() as demo:
250
+ example_txt = """once upon a time there was a village. It was a nice place to live, except for one thing. people did not like to share.,, One day a visitor came to town.
251
+ 'Hello. Does anybody have food to share?' He asked. 'No', said everyone.,,
252
+ That's okay', said the visitor. 'I will make stone soup for everyone'.Then he took a stone and dropped it into a giant pot,,
253
+ The visitor sniffed his broth.Some people came outside to see what he was doing. Some watched from their windows.,,
254
  'Mmmm, I love stone soup. The only thing better is stone soup with cabbage', said the visitor. That gave one man in the village an idea. He brought a cabbage and put it in the pot.,,
255
  Then the visitor said, 'I once had stone soup with cabbage and carrots. It was delicious!', A woman brought carrots and put them in the pot.,,
256
  Then the visitor said, 'I once had stone soup with cabbage, carrots and corn. It was delicious!', A boy brought corn and put it in the pot.,,
 
262
  gr.HTML("""
263
  <center><h1 style="color:#fff">Comics Video Generator</h1></center>""")
264
 
265
+ with gr.Row(elem_id = "col-container"):
266
  input_text = gr.Textbox(label="Comics Text",placeholder="Enter the comics by double comma separated")
267
 
268
+ with gr.Row(elem_id = "col-container"):
269
  button = gr.Button("Generate Video")
270
 
271
+ with gr.Row(elem_id = "col-container"):
272
  output = gr.PlayableVideo()
273
 
274
 
275
+ with gr.Row(elem_id = "col-container"):
276
  example = gr.Examples([example_txt], input_text)
277
 
278
  button.click(self.generate_video,[input_text],output)