Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -231,15 +231,17 @@ with gr.Blocks(css=custom_css, title="DataFormat Converter") as demo:
|
|
| 231 |
""")
|
| 232 |
|
| 233 |
with gr.Column():
|
| 234 |
-
with gr.
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
|
|
|
|
|
|
| 243 |
|
| 244 |
with gr.Accordion("Conversion Results", open=False):
|
| 245 |
output_file = gr.File(label="Download Converted File")
|
|
|
|
| 231 |
""")
|
| 232 |
|
| 233 |
with gr.Column():
|
| 234 |
+
# Replace gr.Box with a div using gr.HTML for the file-box styling
|
| 235 |
+
gr.HTML('<div class="file-box">')
|
| 236 |
+
input_file = gr.File(label="Upload Your File")
|
| 237 |
+
conversion_type = gr.Radio(
|
| 238 |
+
choices=["CSV to Parquet", "Parquet to CSV"],
|
| 239 |
+
label="Select Conversion Type",
|
| 240 |
+
value="CSV to Parquet",
|
| 241 |
+
elem_classes=["conversion-radio"]
|
| 242 |
+
)
|
| 243 |
+
convert_button = gr.Button("Convert Now", elem_classes=["convert-button"])
|
| 244 |
+
gr.HTML('</div>') # Close the file-box div
|
| 245 |
|
| 246 |
with gr.Accordion("Conversion Results", open=False):
|
| 247 |
output_file = gr.File(label="Download Converted File")
|