Spaces:
Sleeping
Sleeping
Kushwanth Chowday Kandala
commited on
Commit
•
a1a96ab
1
Parent(s):
2be5891
update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,48 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
st.title("Hello! Streamlit App")
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
|
|
3 |
|
4 |
+
# gemini_api_key = os.getenv("GEMINI_API_KEY")
|
5 |
+
|
6 |
+
|
7 |
+
# def to_markdown(text):
|
8 |
+
# text = text.replace('•', ' *')
|
9 |
+
# return Markdown(textwrap.indent(text, '> ', predicate=lambda _: True)
|
10 |
+
|
11 |
+
# to_markdown(response.text)
|
12 |
+
|
13 |
+
# import google.generativeai as genai
|
14 |
+
|
15 |
+
# genai.configure(api_key = gemini_api_key)
|
16 |
+
|
17 |
+
# # model = genai.GenerativeModel('gemini-pro')
|
18 |
+
# # response = model.generate_content("What is the meaning of life?")
|
19 |
+
|
20 |
+
# # Define a function that will be called when the user clicks the button
|
21 |
+
# def greet_user():
|
22 |
+
# # Get the user's name from the text input
|
23 |
+
# name = st.text_input("Enter your name:")
|
24 |
+
|
25 |
+
# # Greet the user
|
26 |
+
# st.write(f"Hello, {name}!")
|
27 |
+
|
28 |
+
# # Add a button to the app
|
29 |
+
# st.button("Greet me!", greet_user)
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
# st.title("Hello! Streamlit App")
|
34 |
+
|
35 |
+
# x = st.slider('Select a value')
|
36 |
+
# st.write(x, 'squared is', x * x)
|
37 |
+
|
38 |
+
# st.
|
39 |
+
|
40 |
+
import streamlit as st
|
41 |
+
|
42 |
+
|
43 |
+
st.title('AI Fitness Trainer: Squats Analysis')
|
44 |
+
|
45 |
+
|
46 |
+
recorded_file = 'output_sample.mp4'
|
47 |
+
sample_vid = st.empty()
|
48 |
+
sample_vid.video(recorded_file)
|