You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
st.write("""Transcribe and summarize audio files using Huginn Hears on your local machine.
62
+
Huginn Hears is a tool that uses NB-Whisper for transcription and any LLM from Huggingface you want to summerize the meeting.
63
+
It is optimized for Norwegian and summerizing meetings.""")
64
+
61
65
# Notice about the initial download time for models
62
66
st.info("Please note: The first run of Huginn Hears may be slower as it downloads all necessary models. This is a one-time process, and subsequent runs will be significantly faster.")
63
67
# Get repo id and filename for the Hugging Face model
@@ -69,15 +73,49 @@ def main():
69
73
ifnotmistral_model_pathornotmistral_filename:
70
74
st.warning("Please enter the Hugging Face repo id and the filename of the model.")
st.info("You can write your own prompt and refine templates. NB: Make sure to include the placeholders `{text}` and `{existing_answer}` in the templates.")
111
+
custom_prompt=st.text_area("Custom Prompt Template", placeholder="Summerize this text: {text}")
112
+
custom_refine=st.text_area("Custom Refine Template", placeholder="Refine the summary: {existing_answer} with additional text: {text}")
113
+
ifcustom_prompt:
114
+
selected_prompt_template=custom_prompt
115
+
ifcustom_refine:
116
+
selected_refine_template=custom_refine
117
+
118
+
81
119
uploaded_file=st.file_uploader(
82
120
"Choose an audio file", type=['wav', 'mp3', 'm4a'])
0 commit comments