Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ api_key = os.getenv("HF_TOKEN")
|
|
| 14 |
client = InferenceClient(api_key=api_key)
|
| 15 |
|
| 16 |
# Streamlit app title
|
| 17 |
-
st.title("
|
| 18 |
|
| 19 |
# Ensure the timing variables are initialized in session state
|
| 20 |
if "elapsed_time" not in st.session_state:
|
|
@@ -25,7 +25,7 @@ if "full_text" not in st.session_state:
|
|
| 25 |
st.session_state["full_text"] = ""
|
| 26 |
|
| 27 |
# Model selection dropdown
|
| 28 |
-
model_options = [ "TinyLlama/TinyLlama-1.1B-Chat-v1.0","Qwen/Qwen2.5-1.5B-Instruct", "Qwen/Qwen2.5-72B-Instruct", "meta-llama/Llama-3.2-3B-Instruct"]
|
| 29 |
selected_model = st.selectbox("Choose a model:", model_options)
|
| 30 |
|
| 31 |
# Create a text input area for user prompts
|
|
|
|
| 14 |
client = InferenceClient(api_key=api_key)
|
| 15 |
|
| 16 |
# Streamlit app title
|
| 17 |
+
st.title("LM using HF Inference API (serverless) feature.")
|
| 18 |
|
| 19 |
# Ensure the timing variables are initialized in session state
|
| 20 |
if "elapsed_time" not in st.session_state:
|
|
|
|
| 25 |
st.session_state["full_text"] = ""
|
| 26 |
|
| 27 |
# Model selection dropdown
|
| 28 |
+
model_options = [ "TinyLlama/TinyLlama-1.1B-Chat-v1.0","Qwen/Qwen2.5-1.5B-Instruct", "Qwen/Qwen2.5-72B-Instruct", "meta-llama/Llama-3.2-3B-Instruct","meta-llama/Llama-3.1-8B-Instruct","meta-llama/Llama-3.2-1B-Instruct"]
|
| 29 |
selected_model = st.selectbox("Choose a model:", model_options)
|
| 30 |
|
| 31 |
# Create a text input area for user prompts
|