Spaces:
Runtime error
Runtime error
Deploy v1.0.2: Working Gradio app with correct SHA d4fb4a2
Browse files
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import time
|
| 3 |
|
| 4 |
-
# Semantic versioning
|
| 5 |
-
VERSION = "1.0.
|
| 6 |
-
COMMIT_SHA = "
|
| 7 |
|
| 8 |
def health_check():
|
| 9 |
return {
|
|
@@ -20,7 +20,7 @@ def placeholder_transcribe(audio):
|
|
| 20 |
return "No audio provided"
|
| 21 |
return f"Placeholder: Audio received (type: {type(audio)}) - STT model integration pending"
|
| 22 |
|
| 23 |
-
# Create interface
|
| 24 |
with gr.Blocks(title="STT GPU Service Python v4") as demo:
|
| 25 |
gr.Markdown("# 🎙️ STT GPU Service Python v4")
|
| 26 |
gr.Markdown("Working deployment! Ready for STT model integration.")
|
|
@@ -36,7 +36,7 @@ with gr.Blocks(title="STT GPU Service Python v4") as demo:
|
|
| 36 |
output_text = gr.Textbox()
|
| 37 |
transcribe_btn.click(placeholder_transcribe, inputs=audio_input, outputs=output_text)
|
| 38 |
|
| 39 |
-
# Version display in small text
|
| 40 |
gr.Markdown(f"<small>v{VERSION} (SHA: {COMMIT_SHA})</small>", elem_id="version-info")
|
| 41 |
|
| 42 |
if __name__ == "__main__":
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import time
|
| 3 |
|
| 4 |
+
# Semantic versioning with correct SHA
|
| 5 |
+
VERSION = "1.0.2"
|
| 6 |
+
COMMIT_SHA = "d4fb4a2"
|
| 7 |
|
| 8 |
def health_check():
|
| 9 |
return {
|
|
|
|
| 20 |
return "No audio provided"
|
| 21 |
return f"Placeholder: Audio received (type: {type(audio)}) - STT model integration pending"
|
| 22 |
|
| 23 |
+
# Create interface
|
| 24 |
with gr.Blocks(title="STT GPU Service Python v4") as demo:
|
| 25 |
gr.Markdown("# 🎙️ STT GPU Service Python v4")
|
| 26 |
gr.Markdown("Working deployment! Ready for STT model integration.")
|
|
|
|
| 36 |
output_text = gr.Textbox()
|
| 37 |
transcribe_btn.click(placeholder_transcribe, inputs=audio_input, outputs=output_text)
|
| 38 |
|
| 39 |
+
# Version display in small text
|
| 40 |
gr.Markdown(f"<small>v{VERSION} (SHA: {COMMIT_SHA})</small>", elem_id="version-info")
|
| 41 |
|
| 42 |
if __name__ == "__main__":
|