Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import datetime
|
|
| 4 |
import spaces
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
-
from config import Config
|
| 8 |
from gdpr_filter import apply_gdpr_filter
|
| 9 |
from models import WhisperASR, MistralClient
|
| 10 |
from vips_classifier import classify_all
|
|
@@ -111,9 +111,9 @@ a[href*="gradio.app"], a[href*="/?view=api"] {
|
|
| 111 |
|
| 112 |
with gr.Blocks(title="VoiceNote AI") as demo:
|
| 113 |
|
| 114 |
-
gr.HTML("""
|
| 115 |
<div class="header-banner">
|
| 116 |
-
<h1>
|
| 117 |
<p>VIPS-journalgenerering | Whisper KBLab -> GDPR -> Scaleway</p>
|
| 118 |
</div>
|
| 119 |
""")
|
|
@@ -206,7 +206,7 @@ with gr.Blocks(title="VoiceNote AI") as demo:
|
|
| 206 |
|
| 207 |
entry = {
|
| 208 |
"timestamp": datetime.datetime.now().isoformat(),
|
| 209 |
-
"system": "
|
| 210 |
|
| 211 |
"pipeline_results": {
|
| 212 |
"transcription": transcription,
|
|
|
|
| 4 |
import spaces
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
+
from config import Config, VIPS_CATEGORIES
|
| 8 |
from gdpr_filter import apply_gdpr_filter
|
| 9 |
from models import WhisperASR, MistralClient
|
| 10 |
from vips_classifier import classify_all
|
|
|
|
| 111 |
|
| 112 |
with gr.Blocks(title="VoiceNote AI") as demo:
|
| 113 |
|
| 114 |
+
gr.HTML(f"""
|
| 115 |
<div class="header-banner">
|
| 116 |
+
<h1>{Config.APP_NAME}</h1>
|
| 117 |
<p>VIPS-journalgenerering | Whisper KBLab -> GDPR -> Scaleway</p>
|
| 118 |
</div>
|
| 119 |
""")
|
|
|
|
| 206 |
|
| 207 |
entry = {
|
| 208 |
"timestamp": datetime.datetime.now().isoformat(),
|
| 209 |
+
"system": f"{Config.APP_NAME} v{Config.APP_VERSION}",
|
| 210 |
|
| 211 |
"pipeline_results": {
|
| 212 |
"transcription": transcription,
|