Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -605,7 +605,8 @@ def generate_key_issues():
|
|
605 |
|
606 |
# Make a request to the external API
|
607 |
API_URL = "https://organizedprogrammers-fastapi-kig.hf.space/"
|
608 |
-
endpoint = f"{API_URL}/generate-key-issues"
|
|
|
609 |
api_data = {"query": query}
|
610 |
|
611 |
response = requests.post(endpoint, json=api_data, verify=False)
|
@@ -634,7 +635,8 @@ def generate_prior_art():
|
|
634 |
|
635 |
# Make a request to the external API
|
636 |
API_URL = "https://organizedprogrammers-fastapi-kig.hf.space"
|
637 |
-
endpoint = f"{API_URL}/create-several-probdesc"
|
|
|
638 |
api_data = {
|
639 |
"keys_issues": keys_issues,
|
640 |
"technical_topic": technical_topic
|
|
|
605 |
|
606 |
# Make a request to the external API
|
607 |
API_URL = "https://organizedprogrammers-fastapi-kig.hf.space/"
|
608 |
+
# endpoint = f"{API_URL}/generate-key-issues"
|
609 |
+
endpoint = f"{API_URL}/key-issue-format" # mock faster for demo
|
610 |
api_data = {"query": query}
|
611 |
|
612 |
response = requests.post(endpoint, json=api_data, verify=False)
|
|
|
635 |
|
636 |
# Make a request to the external API
|
637 |
API_URL = "https://organizedprogrammers-fastapi-kig.hf.space"
|
638 |
+
# endpoint = f"{API_URL}/create-several-probdesc"
|
639 |
+
endpoint = f"{API_URL}/create-several-hardcoded" # mock faster for demo
|
640 |
api_data = {
|
641 |
"keys_issues": keys_issues,
|
642 |
"technical_topic": technical_topic
|