Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@
|
|
7 |
@email: [email protected]
|
8 |
"""
|
9 |
import streamlit as st
|
10 |
-
from openai import OpenAI
|
|
|
11 |
|
12 |
# Initialize session state
|
13 |
if 'messages' not in st.session_state:
|
@@ -22,7 +23,8 @@ def create_system_prompt(classification_type, num_to_generate, domain, min_words
|
|
22 |
return system_prompt
|
23 |
|
24 |
# OpenAI client setup (replace with your OpenAI API credentials)
|
25 |
-
client = OpenAI(api_key='YOUR_API_KEY')
|
|
|
26 |
|
27 |
# App title
|
28 |
st.title("Data Generation for Classification")
|
|
|
7 |
@email: [email protected]
|
8 |
"""
|
9 |
import streamlit as st
|
10 |
+
#from openai import OpenAI
|
11 |
+
from huggingface import transformers
|
12 |
|
13 |
# Initialize session state
|
14 |
if 'messages' not in st.session_state:
|
|
|
23 |
return system_prompt
|
24 |
|
25 |
# OpenAI client setup (replace with your OpenAI API credentials)
|
26 |
+
#client = OpenAI(api_key='YOUR_API_KEY')
|
27 |
+
client = Huggingface(api_key='YOUR_API_KEY')
|
28 |
|
29 |
# App title
|
30 |
st.title("Data Generation for Classification")
|