Digital_Ink / app.py
Grey01's picture
Update app.py
8d800b4 verified
raw
history blame
532 Bytes
import gradio as gr
import streamlit as st
from gradio_client import Client
client = Client("https://b2e7dc20663679013e.gradio.live/")
def chat_app():
st.title('Digital Ink')
#chat input field with placeholder
user_input = st.chat_input('Ask Digital Ink...')
#handle user input
if user_input:
#using gradio api client to generate response
response = client.predict(
user_input,
api_name="/predict"
)
st.chat_message('Digital Ink', response)
if __name__ =='__main__':
chat_app()