Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,5 +22,5 @@ llm = models[model_to_run](api_token=API_KEY)
|
|
22 |
pandas_ai = PandasAI(llm, conversational=False, verbose=True)
|
23 |
# Enter Prompt related to data or Select from Pre-defined for demo purposes.
|
24 |
prompt = 'Plot the histogram of countries showing for each the gdp, using different colors for each bar' #@param [ "What is the relation between GDP and Happines Index", "Plot the histogram of countries showing for each the gpd, using different colors for each bar", "GDP of Top 5 Happiest Countries?"] {allow-input: true}
|
25 |
-
|
26 |
is_conversational_answer=False)
|
|
|
22 |
pandas_ai = PandasAI(llm, conversational=False, verbose=True)
|
23 |
# Enter Prompt related to data or Select from Pre-defined for demo purposes.
|
24 |
prompt = 'Plot the histogram of countries showing for each the gdp, using different colors for each bar' #@param [ "What is the relation between GDP and Happines Index", "Plot the histogram of countries showing for each the gpd, using different colors for each bar", "GDP of Top 5 Happiest Countries?"] {allow-input: true}
|
25 |
+
pandas_ai.run(df, prompt=prompt,
|
26 |
is_conversational_answer=False)
|