Update app.py to remove the pip install commands.
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ We'll create multiple prompts and evaluate them against our ground truth data to
|
|
| 24 |
First, let's install our dependencies and make sure we've got our API Key loaded from Secrets (or locally, if you're running via Jupyter)
|
| 25 |
"""
|
| 26 |
|
| 27 |
-
!pip install datasets
|
| 28 |
|
| 29 |
from openai import OpenAI
|
| 30 |
from google.colab import userdata
|
|
@@ -286,7 +286,7 @@ results_df.plot(x='Version', y='Accuracy', kind='bar')
|
|
| 286 |
|
| 287 |
"""## Define Gradio functions and create the chat interaction space"""
|
| 288 |
|
| 289 |
-
pip install gradio
|
| 290 |
|
| 291 |
def test_prompt(prompt_template: dict, user_prompt): #test_data: pd.DataFrame) -> pd.DataFrame:
|
| 292 |
"""Evaluate a prompt against test data and return metrics"""
|
|
|
|
| 24 |
First, let's install our dependencies and make sure we've got our API Key loaded from Secrets (or locally, if you're running via Jupyter)
|
| 25 |
"""
|
| 26 |
|
| 27 |
+
#!pip install datasets
|
| 28 |
|
| 29 |
from openai import OpenAI
|
| 30 |
from google.colab import userdata
|
|
|
|
| 286 |
|
| 287 |
"""## Define Gradio functions and create the chat interaction space"""
|
| 288 |
|
| 289 |
+
#!pip install gradio
|
| 290 |
|
| 291 |
def test_prompt(prompt_template: dict, user_prompt): #test_data: pd.DataFrame) -> pd.DataFrame:
|
| 292 |
"""Evaluate a prompt against test data and return metrics"""
|