Spaces:
Sleeping
Sleeping
omrihaber
commited on
Commit
·
08c3cb4
1
Parent(s):
155af2c
wip
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ runner = MetafeatureExtractorsRunner(metafeature_extractors=[TextLength(),WordCo
|
|
18 |
,SentimentPolarity(),TextComplexity(),ToxicityExtractor()])
|
19 |
|
20 |
|
21 |
-
def ask_gpt(messages,model="gpt-
|
22 |
ret = client.chat.completions.create(model=model,
|
23 |
messages=messages
|
24 |
)
|
@@ -26,7 +26,7 @@ def ask_gpt(messages,model="gpt-4"):
|
|
26 |
|
27 |
client = OpenAI()
|
28 |
|
29 |
-
st.title("GPT
|
30 |
system_prompt = st.text_input("Enter your system's prompt",value="Translate the following into russian")
|
31 |
user_prompt = st.text_input("Enter your user's prompt",value="Hello, how are you?")
|
32 |
|
|
|
18 |
,SentimentPolarity(),TextComplexity(),ToxicityExtractor()])
|
19 |
|
20 |
|
21 |
+
def ask_gpt(messages,model="gpt-3.5-turbo"):
|
22 |
ret = client.chat.completions.create(model=model,
|
23 |
messages=messages
|
24 |
)
|
|
|
26 |
|
27 |
client = OpenAI()
|
28 |
|
29 |
+
st.title("GPT Chatbot")
|
30 |
system_prompt = st.text_input("Enter your system's prompt",value="Translate the following into russian")
|
31 |
user_prompt = st.text_input("Enter your user's prompt",value="Hello, how are you?")
|
32 |
|