Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ model_2_interface = gr.Interface(
|
|
24 |
)
|
25 |
|
26 |
def query(question, context, api_url, headers):
|
27 |
-
if api_url
|
28 |
payload = {"question": question, "context": context}
|
29 |
else:
|
30 |
paylaod = {"question": "what is the context of the question: "+question+" :"}
|
|
|
24 |
)
|
25 |
|
26 |
def query(question, context, api_url, headers):
|
27 |
+
if api_url == API_URL:
|
28 |
payload = {"question": question, "context": context}
|
29 |
else:
|
30 |
paylaod = {"question": "what is the context of the question: "+question+" :"}
|