Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -1,5 +1,12 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
prompt = st.chat_input("Say something")
|
| 4 |
if prompt:
|
| 5 |
st.write(f"User has sent the following prompt: {prompt}")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import subprocess
|
| 3 |
+
import sys
|
| 4 |
|
| 5 |
+
def install(package):
|
| 6 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
| 7 |
+
install("llama-cpp-python")
|
| 8 |
+
|
| 9 |
+
from llama_cpp import Llama
|
| 10 |
prompt = st.chat_input("Say something")
|
| 11 |
if prompt:
|
| 12 |
st.write(f"User has sent the following prompt: {prompt}")
|