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,
|
90 |
target = os.environ.get("target")
|
91 |
target2 = os.environ.get("target2")
|
92 |
openai.api_key = target2
|
@@ -155,7 +155,6 @@ def function(Textbox,Textbox2,Audio, Textbox3):
|
|
155 |
)
|
156 |
reply = chat.choices[0].message.content
|
157 |
messages.append({"role": "assistant", "content": reply})
|
158 |
-
print(Audio)
|
159 |
return reply
|
160 |
except:
|
161 |
return "Please Wait!"
|
@@ -165,7 +164,6 @@ def function(Textbox,Textbox2,Audio, Textbox3):
|
|
165 |
inputs = [
|
166 |
gr.inputs.Textbox(label="Textbox",type="text"),
|
167 |
gr.inputs.Textbox(label="Textbox2",type="text"),
|
168 |
-
gr.inputs.Audio(label="Audio", type="filepath"),
|
169 |
gr.inputs.Textbox(label="Textbox3",type="password")
|
170 |
]
|
171 |
|
|
|
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
|
|
|
155 |
)
|
156 |
reply = chat.choices[0].message.content
|
157 |
messages.append({"role": "assistant", "content": reply})
|
|
|
158 |
return reply
|
159 |
except:
|
160 |
return "Please Wait!"
|
|
|
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 |
|