Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ from llama_index.core.prompts import PromptTemplate
|
|
3 |
from transformers import AutoTokenizer
|
4 |
from llama_index.core import Settings
|
5 |
import os
|
6 |
-
from google.colab import userdata
|
7 |
import time
|
8 |
from llama_index.llms.text_generation_inference import TextGenerationInference
|
9 |
import whisper
|
@@ -78,8 +77,8 @@ def transcribe_(a):
|
|
78 |
return (t1, t2, t3)
|
79 |
|
80 |
output_1 = gr.Textbox(label="Speech to Text")
|
81 |
-
output_2 = gr.Textbox(label="
|
82 |
-
output_3 = gr.Audio(label="
|
83 |
|
84 |
gr.Interface(
|
85 |
title='AI Voice Assistant',
|
|
|
3 |
from transformers import AutoTokenizer
|
4 |
from llama_index.core import Settings
|
5 |
import os
|
|
|
6 |
import time
|
7 |
from llama_index.llms.text_generation_inference import TextGenerationInference
|
8 |
import whisper
|
|
|
77 |
return (t1, t2, t3)
|
78 |
|
79 |
output_1 = gr.Textbox(label="Speech to Text")
|
80 |
+
output_2 = gr.Textbox(label="LLM Output")
|
81 |
+
output_3 = gr.Audio(label="LLM output to audio")
|
82 |
|
83 |
gr.Interface(
|
84 |
title='AI Voice Assistant',
|