Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,15 @@ import os
|
|
| 2 |
import streamlit as st
|
| 3 |
from ctransformers import AutoModelForCausalLM
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Define model repo and filename
|
| 6 |
MODEL_REPO = "TheBloke/Phi-2-GGUF"
|
| 7 |
MODEL_FILE = "phi-2.Q4_K_M.gguf" # Change based on the quantization version you want
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from ctransformers import AutoModelForCausalLM
|
| 4 |
|
| 5 |
+
st.title("✅ Hugging Face Streamlit Test")
|
| 6 |
+
|
| 7 |
+
st.write("Hello! If you see this, the app is working!")
|
| 8 |
+
|
| 9 |
+
st.write("Server running at:", os.getenv("STREAMLIT_SERVER_ADDRESS", "Unknown"))
|
| 10 |
+
|
| 11 |
+
if st.button("Check Status"):
|
| 12 |
+
st.success("The app is running correctly!")
|
| 13 |
+
|
| 14 |
# Define model repo and filename
|
| 15 |
MODEL_REPO = "TheBloke/Phi-2-GGUF"
|
| 16 |
MODEL_FILE = "phi-2.Q4_K_M.gguf" # Change based on the quantization version you want
|