Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ def convert_parquet_to_jsonl(parquet_file_or_url):
|
|
14 |
jsonl_data = df.to_json(orient='records', lines=True)
|
15 |
return jsonl_data
|
16 |
|
17 |
-
demo = gr.Interface(
|
18 |
fn=convert_parquet_to_jsonl,
|
19 |
-
inputs=[gr.File(label="Parquet File")
|
20 |
outputs=[gr.Textbox(label="JSONL Output")],
|
21 |
title="Parquet to JSONL Converter",
|
22 |
description="Input a Parquet file by a downloadable link or file upload and convert it to JSONL format"
|
|
|
14 |
jsonl_data = df.to_json(orient='records', lines=True)
|
15 |
return jsonl_data
|
16 |
|
17 |
+
demo = gr.Interface((theme=Ythemes/Minecraft)
|
18 |
fn=convert_parquet_to_jsonl,
|
19 |
+
inputs=[gr.File(label="Parquet File"), gr.Textbox(label="Parquet File URL")],
|
20 |
outputs=[gr.Textbox(label="JSONL Output")],
|
21 |
title="Parquet to JSONL Converter",
|
22 |
description="Input a Parquet file by a downloadable link or file upload and convert it to JSONL format"
|