Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,10 +95,6 @@ with gr.Blocks(css="""
|
|
95 |
#search_output {
|
96 |
max-width: 400px; /* Adjusts the maximum width of the gallery container */
|
97 |
}
|
98 |
-
#search_query_input input {
|
99 |
-
width: 100%; /* Makes the search bar take the full width of its container */
|
100 |
-
max-width: 400px; /* Set the maximum width of the search bar to match the gallery container */
|
101 |
-
}
|
102 |
#search_output img {
|
103 |
width: 150px !important; /* Adjusts the width of the images */
|
104 |
height: 150px !important;
|
@@ -119,14 +115,14 @@ with gr.Blocks(css="""
|
|
119 |
video_ids_state = gr.State() # To store video IDs corresponding to the search results
|
120 |
|
121 |
with gr.Row():
|
122 |
-
with gr.Column(scale=
|
123 |
search_query_input = gr.Textbox(label="Search YouTube",
|
124 |
placeholder="Enter your search query here",
|
125 |
-
elem_id="search_query_input")
|
126 |
search_button = gr.Button("Search")
|
127 |
search_output = gr.Gallery(label="Search Results", columns=1, height="800px", elem_id="search_output")
|
128 |
|
129 |
-
with gr.Column(scale=
|
130 |
selected_video_link = gr.Textbox(label="Selected Video Link", interactive=False)
|
131 |
play_video_button = gr.Button("Play Video")
|
132 |
video_output = gr.HTML(label="Video Player")
|
|
|
95 |
#search_output {
|
96 |
max-width: 400px; /* Adjusts the maximum width of the gallery container */
|
97 |
}
|
|
|
|
|
|
|
|
|
98 |
#search_output img {
|
99 |
width: 150px !important; /* Adjusts the width of the images */
|
100 |
height: 150px !important;
|
|
|
115 |
video_ids_state = gr.State() # To store video IDs corresponding to the search results
|
116 |
|
117 |
with gr.Row():
|
118 |
+
with gr.Column(scale=1, min_width=400): # Adjust scale and min_width for the search column
|
119 |
search_query_input = gr.Textbox(label="Search YouTube",
|
120 |
placeholder="Enter your search query here",
|
121 |
+
elem_id="search_query_input")
|
122 |
search_button = gr.Button("Search")
|
123 |
search_output = gr.Gallery(label="Search Results", columns=1, height="800px", elem_id="search_output")
|
124 |
|
125 |
+
with gr.Column(scale=1, min_width=400):
|
126 |
selected_video_link = gr.Textbox(label="Selected Video Link", interactive=False)
|
127 |
play_video_button = gr.Button("Play Video")
|
128 |
video_output = gr.HTML(label="Video Player")
|