Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ def Main(prompt, inputText, audioFile):
|
|
| 26 |
finalText = ''
|
| 27 |
listOfImages = []
|
| 28 |
|
| 29 |
-
|
|
|
|
| 30 |
|
| 31 |
transcribedText = TranscribeAudio(audioFile)
|
| 32 |
print(transcribedText)
|
|
@@ -87,6 +88,8 @@ def GenerateTextLLM(inputText):
|
|
| 87 |
|
| 88 |
def TranscribeAudio(filepath):
|
| 89 |
client = Groq()
|
|
|
|
|
|
|
| 90 |
|
| 91 |
with open(filepath, "rb") as file:
|
| 92 |
transcription = client.audio.transcriptions.create(
|
|
@@ -111,7 +114,7 @@ interface_image = gr.Interface(
|
|
| 111 |
fn=Main,
|
| 112 |
inputs=inputs,
|
| 113 |
outputs=outputs_image,
|
| 114 |
-
title="
|
| 115 |
)
|
| 116 |
|
| 117 |
interface_image.launch()
|
|
|
|
| 26 |
finalText = ''
|
| 27 |
listOfImages = []
|
| 28 |
|
| 29 |
+
print(type(audioFile))
|
| 30 |
+
print(audioFile)
|
| 31 |
|
| 32 |
transcribedText = TranscribeAudio(audioFile)
|
| 33 |
print(transcribedText)
|
|
|
|
| 88 |
|
| 89 |
def TranscribeAudio(filepath):
|
| 90 |
client = Groq()
|
| 91 |
+
print(type(filepath))
|
| 92 |
+
print(filepath)
|
| 93 |
|
| 94 |
with open(filepath, "rb") as file:
|
| 95 |
transcription = client.audio.transcriptions.create(
|
|
|
|
| 114 |
fn=Main,
|
| 115 |
inputs=inputs,
|
| 116 |
outputs=outputs_image,
|
| 117 |
+
title="Projet Diapo",
|
| 118 |
)
|
| 119 |
|
| 120 |
interface_image.launch()
|