Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ import random
|
|
86 |
import base64
|
87 |
import os
|
88 |
|
89 |
-
def function(Textbox,Textbox2,Textbox3):
|
90 |
target = os.environ.get("target")
|
91 |
target2 = os.environ.get("target2")
|
92 |
openai.api_key = target2
|
@@ -164,6 +164,7 @@ def function(Textbox,Textbox2,Textbox3):
|
|
164 |
inputs = [
|
165 |
gr.inputs.Textbox(label="Textbox",type="text"),
|
166 |
gr.inputs.Textbox(label="Textbox2",type="text"),
|
|
|
167 |
gr.inputs.Textbox(label="Textbox3",type="password")
|
168 |
]
|
169 |
|
|
|
86 |
import base64
|
87 |
import os
|
88 |
|
89 |
+
def function(Textbox,Textbox2,Audio, Textbox3):
|
90 |
target = os.environ.get("target")
|
91 |
target2 = os.environ.get("target2")
|
92 |
openai.api_key = target2
|
|
|
164 |
inputs = [
|
165 |
gr.inputs.Textbox(label="Textbox",type="text"),
|
166 |
gr.inputs.Textbox(label="Textbox2",type="text"),
|
167 |
+
gr.Audio((label="Audio",source="microphone", type="filepath"),
|
168 |
gr.inputs.Textbox(label="Textbox3",type="password")
|
169 |
]
|
170 |
|