Spaces:
Runtime error
Runtime error
File size: 370 Bytes
6f43702 0491265 f3a5963 6f43702 79c6861 91e2928 6f43702 91e2928 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import streamlit as st
from freeGPT import Client
st.title("ChatGPT4 UI")
cont = st.container(height=600)
prompt = st.chat_input(placeholder="Eg. How are you?")
if prompt:
output = Client.create_completion("gpt3", prompt)
user_pr = cont.chat_message("user")
user_pr.write(prompt)
output_msg = cont.chat_message("assistant")
output_msg.write(output) |