Merge pull request #2 from east-and-west-magic/call-new-ai
Browse files- README.md +1 -1
- app.py +1 -1
- call_pgai.py +1 -1
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🌍
|
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
app.py
CHANGED
|
@@ -13,7 +13,7 @@ from utils import normalize_text
|
|
| 13 |
#######################
|
| 14 |
# proxy version
|
| 15 |
#######################
|
| 16 |
-
proxy_version = "1.0.0-2024-
|
| 17 |
|
| 18 |
t = datetime.now()
|
| 19 |
t = t.astimezone(ZoneInfo("Asia/Shanghai"))
|
|
|
|
| 13 |
#######################
|
| 14 |
# proxy version
|
| 15 |
#######################
|
| 16 |
+
proxy_version = "1.0.0-2024-12-17-a"
|
| 17 |
|
| 18 |
t = datetime.now()
|
| 19 |
t = t.astimezone(ZoneInfo("Asia/Shanghai"))
|
call_pgai.py
CHANGED
|
@@ -13,7 +13,7 @@ def post_to_pgai_helper(command: str, game: str) -> Any:
|
|
| 13 |
}
|
| 14 |
|
| 15 |
header = {"accept": "application/json", "Content-Type": "application/json"}
|
| 16 |
-
url_base = f"https://
|
| 17 |
url_read = f"{url_base}/r"
|
| 18 |
|
| 19 |
try:
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
header = {"accept": "application/json", "Content-Type": "application/json"}
|
| 16 |
+
url_base = f"https://playgo.eastus2.cloudapp.azure.com/games/{game}/nlp"
|
| 17 |
url_read = f"{url_base}/r"
|
| 18 |
|
| 19 |
try:
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
pytest
|
| 2 |
-
gradio==4.
|
| 3 |
git+https://github.com/east-and-west-magic/pgsoft.git@tag-2024-01-11-a
|
|
|
|
| 1 |
pytest
|
| 2 |
+
gradio==4.44.1
|
| 3 |
git+https://github.com/east-and-west-magic/pgsoft.git@tag-2024-01-11-a
|