Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,6 @@ def main(description, columns):
|
|
115 |
return df_synthetic # Return the error message if any
|
116 |
return df_synthetic.to_csv(index=False)
|
117 |
|
118 |
-
# Gradio interface
|
119 |
iface = gr.Interface(
|
120 |
fn=main,
|
121 |
inputs=[
|
@@ -124,12 +123,11 @@ iface = gr.Interface(
|
|
124 |
],
|
125 |
outputs="text",
|
126 |
title="Synthetic Data Generator",
|
127 |
-
description="Generate synthetic tabular datasets based on a description and specified columns."
|
128 |
-
allow_flagging=False # Disable flagging if not needed
|
129 |
)
|
130 |
|
131 |
-
# Set an API name for the POST request
|
132 |
iface.api_name = "generate"
|
|
|
133 |
# Run the Gradio app
|
134 |
iface.launch(server_name="0.0.0.0", server_port=7860, share= True)
|
135 |
|
|
|
115 |
return df_synthetic # Return the error message if any
|
116 |
return df_synthetic.to_csv(index=False)
|
117 |
|
|
|
118 |
iface = gr.Interface(
|
119 |
fn=main,
|
120 |
inputs=[
|
|
|
123 |
],
|
124 |
outputs="text",
|
125 |
title="Synthetic Data Generator",
|
126 |
+
description="Generate synthetic tabular datasets based on a description and specified columns."
|
|
|
127 |
)
|
128 |
|
|
|
129 |
iface.api_name = "generate"
|
130 |
+
|
131 |
# Run the Gradio app
|
132 |
iface.launch(server_name="0.0.0.0", server_port=7860, share= True)
|
133 |
|