ehagey commited on
Commit
a75f56e
·
verified ·
1 Parent(s): 982bb9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,17 +1,20 @@
1
  import streamlit as st
2
  import pandas as pd
3
- from together import Together
4
  from dotenv import load_dotenv
5
  from datasets import load_dataset
6
  import json
7
  import re
 
8
  import os
9
  from config import DATASETS, MODELS
10
  import matplotlib.pyplot as plt
11
  import altair as alt
12
 
13
  load_dotenv()
14
- client = Together(api_key=os.getenv('TOGETHERAI_API_KEY'))
 
 
 
15
 
16
  @st.cache_data
17
  def load_dataset_by_name(dataset_name, split="train"):
 
1
  import streamlit as st
2
  import pandas as pd
 
3
  from dotenv import load_dotenv
4
  from datasets import load_dataset
5
  import json
6
  import re
7
+ from openai import OpenAI
8
  import os
9
  from config import DATASETS, MODELS
10
  import matplotlib.pyplot as plt
11
  import altair as alt
12
 
13
  load_dotenv()
14
+ client = OpenAI(
15
+ api_key=os.getenv('TOGETHERAI_API_KEY'),
16
+ base_url="https://api.together.xyz/v1"
17
+ )
18
 
19
  @st.cache_data
20
  def load_dataset_by_name(dataset_name, split="train"):