agentharbor commited on
Commit
4bbc017
·
verified ·
1 Parent(s): f7dd29c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -21,9 +21,15 @@ def generate_profile(file):
21
  # Create a Gradio interface
22
  iface = gr.Interface(
23
  fn=generate_profile,
24
- inputs=gr.inputs.File(label="Upload CSV File"),
25
- outputs=gr.outputs.Dataframe(label="Profile Data")
 
 
 
 
 
26
  )
27
 
28
- # Launch the app
29
- iface.launch()
 
 
21
  # Create a Gradio interface
22
  iface = gr.Interface(
23
  fn=generate_profile,
24
+ #inputs=["text", "text", "text"],
25
+ inputs = ["file"],
26
+ outputs=["text"],
27
+ title="Agentville: Explore CSV files using autonomous agents",
28
+ description="Generate insights in minutes on your own data",
29
+ article="This Gradio app uses the CAMEL framework to initiate conversations across multiple autonomous agents for task-solving.",
30
+ live=False,
31
  )
32
 
33
+ # Launch the Gradio app
34
+ if __name__ == "__main__":
35
+ iface.queue(concurrency_count=5, max_size=20).launch(share=True,debug=True)