LaoCzi commited on
Commit
99814c3
·
1 Parent(s): 3e79655

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -60,7 +60,7 @@ def generate(video_url, request: gr.Request):
60
 
61
  #Если две переменные пустые, то показываем базовую страницу с рекламой
62
  if (video_url =="") and (my_v == ""):
63
- html_embed='<div><br> An easy way to get video descriptions If you are on YouTube itself, simply add "zxc" in front of YouTube to the videos address.</div>'
64
  summarize=""
65
  return summarize, html_embed
66
 
@@ -130,12 +130,10 @@ footer {visibility: hidden}
130
  .gradio-container {padding-top: 100px}
131
  """
132
  with gr.Blocks(css=css, title=title) as demo:
133
- gr.HTML("<h1>A simple way to summarise and translate the YouTube video in 22 languages</h1>"+google_analtycs)
134
- with gr.Row():
135
- with gr.Column():
136
- input_d = gr.Textbox(label="YouTube video URL", placeholder="https://www.youtube.com/watch?v=XXXXXXXX", value="")
137
- greet_btn = gr.Button("Summarise")
138
- dt_2 = gr.outputs.HTML()
139
  dt_1 = gr.outputs.HTML()
140
  dt =[dt_1, dt_2]
141
  greet_btn.click(generate, inputs=input_d, outputs=dt)
 
60
 
61
  #Если две переменные пустые, то показываем базовую страницу с рекламой
62
  if (video_url =="") and (my_v == ""):
63
+ html_embed='<div></div>'
64
  summarize=""
65
  return summarize, html_embed
66
 
 
130
  .gradio-container {padding-top: 100px}
131
  """
132
  with gr.Blocks(css=css, title=title) as demo:
133
+ gr.HTML("<h1>A simple way to summarise the YouTube video </h1>"+google_analtycs)
134
+ input_d = gr.Textbox(label="YouTube video URL", placeholder="https://www.youtube.com/watch?v=XXXXXXXX", value="")
135
+ greet_btn = gr.Button("Summarise")
136
+ dt_2 = gr.outputs.HTML()
 
 
137
  dt_1 = gr.outputs.HTML()
138
  dt =[dt_1, dt_2]
139
  greet_btn.click(generate, inputs=input_d, outputs=dt)