srivatsavdamaraju commited on
Commit
66934e6
·
verified ·
1 Parent(s): 185266e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -16
app.py CHANGED
@@ -101,23 +101,20 @@ def create_interface():
101
  with gr.Column(scale=1):
102
  # Input components
103
  api_key_input = gr.Textbox(
104
- label="Groq API Key",
105
  placeholder="Enter your Groq API key here...",
106
- type="password",
107
- info="Your API key is not stored and only used for this session"
108
  )
109
 
110
  file_input = gr.File(
111
  label="Upload CSV File",
112
- file_types=[".csv"],
113
- info="Upload your CSV data file"
114
  )
115
 
116
  query_input = gr.Textbox(
117
- label="Your Query",
118
  placeholder="e.g., 'Which are the top 5 countries by population?' or 'Create a bar plot of the top 5 countries'",
119
- lines=3,
120
- info="Ask questions about your data or request visualizations"
121
  )
122
 
123
  submit_btn = gr.Button("🚀 Submit Query", variant="primary")
@@ -127,13 +124,11 @@ def create_interface():
127
  result_output = gr.Textbox(
128
  label="Analysis Result",
129
  lines=10,
130
- interactive=False,
131
- show_copy_button=True
132
  )
133
 
134
  chart_output = gr.Image(
135
- label="Generated Visualization",
136
- show_label=True
137
  )
138
 
139
  # Example queries
@@ -173,8 +168,5 @@ if __name__ == "__main__":
173
  demo.launch(
174
  server_name="0.0.0.0",
175
  server_port=7860,
176
- share=False,
177
- show_error=True,
178
- show_tips=True,
179
- enable_queue=True
180
  )
 
101
  with gr.Column(scale=1):
102
  # Input components
103
  api_key_input = gr.Textbox(
104
+ label="Groq API Key (get from console.groq.com/keys)",
105
  placeholder="Enter your Groq API key here...",
106
+ type="password"
 
107
  )
108
 
109
  file_input = gr.File(
110
  label="Upload CSV File",
111
+ file_types=[".csv"]
 
112
  )
113
 
114
  query_input = gr.Textbox(
115
+ label="Your Query - Ask questions about your data",
116
  placeholder="e.g., 'Which are the top 5 countries by population?' or 'Create a bar plot of the top 5 countries'",
117
+ lines=3
 
118
  )
119
 
120
  submit_btn = gr.Button("🚀 Submit Query", variant="primary")
 
124
  result_output = gr.Textbox(
125
  label="Analysis Result",
126
  lines=10,
127
+ interactive=False
 
128
  )
129
 
130
  chart_output = gr.Image(
131
+ label="Generated Visualization"
 
132
  )
133
 
134
  # Example queries
 
168
  demo.launch(
169
  server_name="0.0.0.0",
170
  server_port=7860,
171
+ share=False
 
 
 
172
  )