Spaces:
Sleeping
Sleeping
File size: 307 Bytes
bb05e2d 89c2209 bb05e2d f672c4e 78338d6 e65e63b 08a9b60 e65e63b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import streamlit as st
from freeGPT import Client
st.title("KviGPT")
user_input = st.chat_input("Type something")
if user_input:
try:
resp = Client.create_completion("gpt3", user_input)
st.chat_message(f"🤖: {resp}")
except Exception as e:
st.chat_message(f"🤖: {e}")
|