nvab commited on
Commit
03686a0
β€’
1 Parent(s): 8f75be6

Delete Dockerfile

Browse files

# File 1: app.py
import streamlit as st
import pandas as pd

# Sample course data
courses = [
{
"title": "Python for Data Science",
"description": "Learn Python programming fundamentals for data science applications",
"level": "Beginner"
},
{
"title": "Machine Learning Basics",
"description": "Understanding machine learning concepts and algorithms",
"level": "Intermediate"
},
]

# Page config
st.set_page_config(
page_title="Course Search",
page_icon="πŸ”"
)

# Create the Streamlit app
st.title("πŸŽ“ Course Search")
st.write("Search through available courses")

# Create a simple search box
search_query = st.text_input("Enter keywords to search:", "")

# Simple search function
if search_query:
found_courses = False
# Convert search query to lowercase for case-insensitive search
search_query = search_query.lower()

# Search through courses
for course in courses:
# Check if search query exists in title or description
if (search_query in course["title"].lower() or
search_query in course["description"].lower()):

# Display matching course in a box
st.success("Match found!")
with st.container():
st.markdown(f"### {course['title']}")
st.write(f"πŸ“ Description: {course['description']}")
st.write(f"πŸ“Š Level: {course['level']}")
st.divider()
found_courses = True

if not found_courses:
st.warning("No courses found matching your search.")

# File 2: requirements.txt
#streamlit==1.24.0
#pandas==2.0.3

Files changed (1) hide show
  1. Dockerfile +0 -31
Dockerfile DELETED
@@ -1,31 +0,0 @@
1
- # With this dockerfile in a Huggingface space you will get an entire AnythingLLM instance running
2
- # in your space with all features you would normally get from the docker based version of AnythingLLM.
3
- #
4
- # How to use
5
- # - Login to https://huggingface.co/spaces
6
- # - Click on "Create new Space"
7
- # - Name the space and select "Docker" as the SDK w/ a blank template
8
- # - The default 2vCPU/16GB machine is OK. The more the merrier.
9
- # - Decide if you want your AnythingLLM Space public or private.
10
- # **You might want to stay private until you at least set a password or enable multi-user mode**
11
- # - Click "Create Space"
12
- # - Click on "Settings" on top of page (https://huggingface.co/spaces/<username>/<space-name>/settings)
13
- # - Scroll to "Persistent Storage" and select the lowest tier of now - you can upgrade if you run out.
14
- # - Confirm and continue storage upgrade
15
- # - Go to "Files" Tab (https://huggingface.co/spaces/<username>/<space-name>/tree/main)
16
- # - Click "Add Files"
17
- # - Upload this file or create a file named `Dockerfile` and copy-paste this content into it. "Commit to main" and save.
18
- # - Your container will build and boot. You now have AnythingLLM on HuggingFace. Your data is stored in the persistent storage attached.
19
- # Have Fun πŸ€—
20
- # Have issues? Check the logs on HuggingFace for clues.
21
- FROM mintplexlabs/anythingllm:render
22
-
23
- USER root
24
- RUN mkdir -p /data/storage
25
- RUN ln -s /data/storage /storage
26
- USER anythingllm
27
-
28
- ENV STORAGE_DIR="/data/storage"
29
- ENV SERVER_PORT=7860
30
-
31
- ENTRYPOINT ["/bin/bash", "/usr/local/bin/render-entrypoint.sh"]