Spaces:
Paused
Paused
fix: added qa_chain
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ import whisper
|
|
19 |
from datetime import datetime
|
20 |
import json
|
21 |
import requests
|
|
|
22 |
|
23 |
class ChatbotClass:
|
24 |
def __init__(self):
|
@@ -234,7 +235,7 @@ iface = gr.Interface(
|
|
234 |
inputs=[gr.inputs.Textbox(label="Text Input"),
|
235 |
gr.inputs.Audio(source="microphone", type='filepath')],
|
236 |
outputs=[gr.outputs.Textbox(label="Result"),
|
237 |
-
gr.outputs.Video().style(width=
|
238 |
)
|
239 |
iface.launch()
|
240 |
|
|
|
19 |
from datetime import datetime
|
20 |
import json
|
21 |
import requests
|
22 |
+
from langchain.chains.question_answering import load_qa_chain
|
23 |
|
24 |
class ChatbotClass:
|
25 |
def __init__(self):
|
|
|
235 |
inputs=[gr.inputs.Textbox(label="Text Input"),
|
236 |
gr.inputs.Audio(source="microphone", type='filepath')],
|
237 |
outputs=[gr.outputs.Textbox(label="Result"),
|
238 |
+
gr.outputs.Video().style(width=360, height=360, container=True)]
|
239 |
)
|
240 |
iface.launch()
|
241 |
|