Spaces:
Paused
Paused
Commit
·
02ef8c7
1
Parent(s):
9520f43
Added whatismyip
Browse files- .idea/misc.xml +4 -1
- main/api.py +0 -0
- main/main.py +3 -1
- requirements.txt +1 -0
.idea/misc.xml
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
-
<component name="
|
|
|
|
|
|
|
4 |
<output url="file://$PROJECT_DIR$/out" />
|
5 |
</component>
|
6 |
</project>
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
+
<component name="Black">
|
4 |
+
<option name="sdkName" value="Python 3.12 (LLM-Engine)" />
|
5 |
+
</component>
|
6 |
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="Python 3.12 (LLM-Engine)" project-jdk-type="Python SDK">
|
7 |
<output url="file://$PROJECT_DIR$/out" />
|
8 |
</component>
|
9 |
</project>
|
main/api.py
DELETED
File without changes
|
main/main.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
from fastapi import FastAPI, HTTPException
|
2 |
from pydantic import BaseModel
|
3 |
-
from typing import Optional,
|
4 |
import torch
|
5 |
import logging
|
6 |
from pathlib import Path
|
7 |
from litgpt.api import LLM
|
8 |
import os
|
9 |
import uvicorn
|
|
|
10 |
|
11 |
# Set up logging
|
12 |
logging.basicConfig(level=logging.INFO)
|
@@ -169,6 +170,7 @@ def main():
|
|
169 |
port = int(os.getenv("LLM_ENGINE_PORT", "8001"))
|
170 |
|
171 |
# Start the server
|
|
|
172 |
uvicorn.run(
|
173 |
app,
|
174 |
host=host,
|
|
|
1 |
from fastapi import FastAPI, HTTPException
|
2 |
from pydantic import BaseModel
|
3 |
+
from typing import Optional, Union
|
4 |
import torch
|
5 |
import logging
|
6 |
from pathlib import Path
|
7 |
from litgpt.api import LLM
|
8 |
import os
|
9 |
import uvicorn
|
10 |
+
import whatismyip
|
11 |
|
12 |
# Set up logging
|
13 |
logging.basicConfig(level=logging.INFO)
|
|
|
170 |
port = int(os.getenv("LLM_ENGINE_PORT", "8001"))
|
171 |
|
172 |
# Start the server
|
173 |
+
print(whatismyip.whatismyip())
|
174 |
uvicorn.run(
|
175 |
app,
|
176 |
host=host,
|
requirements.txt
CHANGED
@@ -63,3 +63,4 @@ typing_extensions==4.12.2
|
|
63 |
urllib3==2.2.3
|
64 |
uvicorn==0.27.0
|
65 |
yarl==1.17.1
|
|
|
|
63 |
urllib3==2.2.3
|
64 |
uvicorn==0.27.0
|
65 |
yarl==1.17.1
|
66 |
+
whatismyip==2024.2.20
|