Spaces:
Runtime error
Runtime error
Commit
·
562dbef
1
Parent(s):
c7fb698
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,9 @@ def fetch_answer(question, context ):
|
|
9 |
demo = gr.Interface(
|
10 |
fn=fetch_answer,
|
11 |
#take input as real time audio and use OPENAPI whisper for S2T
|
12 |
-
inputs=[gr.Textbox(lines=2, placeholder="What is age of patient..."
|
13 |
-
gr.Textbox(lines=2, placeholder="The patient is a 71 year old male..."
|
14 |
outputs="text",
|
|
|
15 |
)
|
16 |
demo.launch()
|
|
|
9 |
demo = gr.Interface(
|
10 |
fn=fetch_answer,
|
11 |
#take input as real time audio and use OPENAPI whisper for S2T
|
12 |
+
inputs=[gr.Textbox(lines=2, placeholder="What is age of patient..."),
|
13 |
+
gr.Textbox(lines=2, placeholder="The patient is a 71 year old male...")],
|
14 |
outputs="text",
|
15 |
+
examples=[['questiontest1','context1'],['questiontest2'.'context2']]
|
16 |
)
|
17 |
demo.launch()
|