Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,6 @@ video_examples = [
|
|
208 |
["Explain the ad in detail.", "videos/1.mp4"]
|
209 |
]
|
210 |
|
211 |
-
# --- CODE MODIFICATION START ---
|
212 |
# Added CSS to style the output area as a "Canvas"
|
213 |
css = """
|
214 |
.submit-btn {
|
@@ -219,13 +218,11 @@ css = """
|
|
219 |
background-color: #3498db !important;
|
220 |
}
|
221 |
.canvas-output {
|
222 |
-
border: 2px;
|
223 |
border-radius: 10px;
|
224 |
padding: 20px;
|
225 |
}
|
226 |
"""
|
227 |
-
# --- CODE MODIFICATION END ---
|
228 |
-
|
229 |
|
230 |
# Create the Gradio Interface
|
231 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
@@ -257,7 +254,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
257 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
|
258 |
|
259 |
with gr.Column():
|
260 |
-
# Wrapped the outputs in a styled Column to act as the Canvas
|
261 |
with gr.Column(elem_classes="canvas-output"):
|
262 |
gr.Markdown("## Result Canvas")
|
263 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
|
|
|
208 |
["Explain the ad in detail.", "videos/1.mp4"]
|
209 |
]
|
210 |
|
|
|
211 |
# Added CSS to style the output area as a "Canvas"
|
212 |
css = """
|
213 |
.submit-btn {
|
|
|
218 |
background-color: #3498db !important;
|
219 |
}
|
220 |
.canvas-output {
|
221 |
+
border: 2px solid #4682B4;
|
222 |
border-radius: 10px;
|
223 |
padding: 20px;
|
224 |
}
|
225 |
"""
|
|
|
|
|
226 |
|
227 |
# Create the Gradio Interface
|
228 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
|
254 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
|
255 |
|
256 |
with gr.Column():
|
|
|
257 |
with gr.Column(elem_classes="canvas-output"):
|
258 |
gr.Markdown("## Result Canvas")
|
259 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
|