QueryYourDocs / ollama_inference.py
LVKinyanjui's picture
Fixed import issues
98e42d1
raw
history blame
298 Bytes
import streamlit as st
from modules.common.ollama_sum_refine import refine
st.write("### Get an Ollama Response ✨")
text = st.text_area("Input your Text tHere", height=300)
@st.cache_data
def summarize(content):
return refine(content)
if text:
response = summarize(text)
response