Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,10 @@ import base64
|
|
87 |
import os
|
88 |
|
89 |
def function(Textbox,Textbox2,Textbox3):
|
|
|
|
|
|
|
|
|
90 |
if Textbox3 == target:
|
91 |
if "/web" in Textbox.lower() or "web" in Textbox.lower():
|
92 |
try:
|
@@ -111,10 +115,6 @@ def function(Textbox,Textbox2,Textbox3):
|
|
111 |
else:
|
112 |
return "Failed"
|
113 |
else:
|
114 |
-
target = os.environ.get("target")
|
115 |
-
target2 = os.environ.get("target2")
|
116 |
-
openai.api_key = target2
|
117 |
-
content = os.environ.get("content")
|
118 |
# model = os.environ.get("model")
|
119 |
# hrc = os.environ.get("hrc")
|
120 |
if Textbox3 == target:
|
|
|
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
|
93 |
+
content = os.environ.get("content")
|
94 |
if Textbox3 == target:
|
95 |
if "/web" in Textbox.lower() or "web" in Textbox.lower():
|
96 |
try:
|
|
|
115 |
else:
|
116 |
return "Failed"
|
117 |
else:
|
|
|
|
|
|
|
|
|
118 |
# model = os.environ.get("model")
|
119 |
# hrc = os.environ.get("hrc")
|
120 |
if Textbox3 == target:
|