Kushwanth Chowday Kandala commited on
Commit
db4e906
·
1 Parent(s): a1a96ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -26
app.py CHANGED
@@ -1,48 +1,48 @@
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)
 
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
 
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)