Spaces:
Sleeping
Sleeping
Commit
Β·
e65e63b
1
Parent(s):
f672c4e
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,11 @@ from freeGPT import Client
|
|
3 |
|
4 |
st.title("KviGPT")
|
5 |
|
6 |
-
user_input = st.chat_input("
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
3 |
|
4 |
st.title("KviGPT")
|
5 |
|
6 |
+
user_input = st.chat_input("Type something")
|
7 |
|
8 |
+
if user_input:
|
9 |
+
try:
|
10 |
+
resp = Client.create_completion("gpt3", user_input)
|
11 |
+
st.chat_message(f"π€: {resp}")
|
12 |
+
except Exception as e:
|
13 |
+
st.chat_message(f"π€: {e}")
|