supernovamutinda commited on
Commit
391e04b
1 Parent(s): 83219fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -24
app.py CHANGED
@@ -1,30 +1,26 @@
1
  import streamlit as st
2
- from transformers import pipeline
3
 
4
- # Initialize the transcription pipeline
5
- transcribe = pipeline(model="openai/whisper-large-v2")
6
 
7
- # Streamlit page configuration
8
- st.title("Transcription Service")
9
- st.write("Upload a YouTube URL or an audio file to transcribe.")
 
 
10
 
11
- # Input: YouTube URL or Audio File
12
- url = st.text_input("Enter YouTube URL:")
13
- audio_file = st.file_uploader("Or upload an audio file (mp3, wav):")
 
 
 
 
14
 
15
- if url:
16
- # Process the YouTube URL and extract audio for transcription
17
- # Note: You'll need to implement the extraction of audio from YouTube URL
18
- st.write("Transcribing from YouTube URL...")
19
- # audio_data = extract_audio_from_url(url) # Placeholder for actual extraction function
20
- # transcription = transcribe(audio_data)
21
- # st.write(transcription)
22
- st.write("YouTube URL transcription is not implemented yet.")
23
- elif audio_file:
24
- # Process the uploaded audio file for transcription
25
- st.write("Transcribing from uploaded audio file...")
26
- transcription = transcribe(audio_file.getvalue())
27
- st.write(transcription)
28
-
29
- st.write("Thank you for using our service!")
30
 
 
 
 
 
 
 
1
  import streamlit as st
 
2
 
 
 
3
 
4
+ with st.sidebar:
5
+ st.image("https://www.onepointltd.com/wp-content/uploads/2020/03/inno2.png")
6
+ st.title("Campus Comrade Assistant")
7
+ choice = st.radio("Navigation", ["Home/about","Meal Suggester","Accomodation available", "Assignment assist", "Events"])
8
+ st.info("This project application helps you accomplish both major and minor tasks efficiently.")
9
 
10
+ if choice == "Home/about":
11
+ st.title("Welcome to Campus Comrade Assitant")
12
+ st.write("In this app you can book an event, get balanced diet meal suggestions, find accomodation around you and so much more. welcome to your onestop comrade assist app")
13
+
14
+ if choice == "Meal Suggester":
15
+ st.title("Time to Eat")
16
+ st.write("Feeling Hungry? Let get you some nice meal to silence that grumbling. In a healthy way ofcourse")
17
 
18
+ if choice == "Accomodation available":
19
+ st.title("Ready to Move in?")
20
+ st.write("Find Best value rooms around you. Live in a cozy and quiet environment, or a Lively bustling Street. You decide")
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
+ if choice == "Assignment assist":
23
+ st.title("Let's complete that assignment")
24
+
25
+ if choice == "Events":
26
+ st.title("Collaborate and Jazz. Events around You")