corvo7 commited on
Commit
f3fbeb9
·
verified ·
1 Parent(s): b27b0b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,11 +3,14 @@ import os
3
  import streamlit as s
4
  os.environ["OPENAI_API_KEY"]="sk-proj-uHasdgbriPPlFMm99ZtJT3BlbkFJOl231YfdxCSNmQjVEpMX"
5
 
 
 
 
6
  responds=openai.chat.completions.create(
7
  model="gpt-3.5-turbo",
8
  messages=[
9
  {"role": "system", "content": "you are a very good assistant"},# set the behaviour of
10
- {"role": "user", "content": "hi how are you"}
11
  ],
12
  temperature=0,
13
  max_tokens=200
 
3
  import streamlit as s
4
  os.environ["OPENAI_API_KEY"]="sk-proj-uHasdgbriPPlFMm99ZtJT3BlbkFJOl231YfdxCSNmQjVEpMX"
5
 
6
+
7
+ q=s.input()
8
+
9
  responds=openai.chat.completions.create(
10
  model="gpt-3.5-turbo",
11
  messages=[
12
  {"role": "system", "content": "you are a very good assistant"},# set the behaviour of
13
+ {"role": "user", "content":q}
14
  ],
15
  temperature=0,
16
  max_tokens=200