Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,6 @@ import requests
|
|
| 9 |
import mysql.connector
|
| 10 |
from qdrant_client import QdrantClient
|
| 11 |
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent
|
| 12 |
-
import socket
|
| 13 |
|
| 14 |
# 通貨変換関数
|
| 15 |
CurrencySymbol = Literal["USD", "EUR"]
|
|
@@ -112,12 +111,6 @@ def weather_forecast(location: str) -> str:
|
|
| 112 |
return f"{weather['location']} will be {weather['temperature']} degrees {weather['unit']}"
|
| 113 |
|
| 114 |
def trend_predict(prompt: str) -> str:
|
| 115 |
-
host = socket.gethostname()
|
| 116 |
-
print('hostname: ' + host)
|
| 117 |
-
pip = socket.gethostbyname(host)
|
| 118 |
-
print('pip: ' + pip)
|
| 119 |
-
gip = requests.get('https://huggingface.co/').text
|
| 120 |
-
print('gip: ' + gip)
|
| 121 |
# Set the system prompt
|
| 122 |
system_prompt = {
|
| 123 |
"role": "system",
|
|
|
|
| 9 |
import mysql.connector
|
| 10 |
from qdrant_client import QdrantClient
|
| 11 |
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent
|
|
|
|
| 12 |
|
| 13 |
# 通貨変換関数
|
| 14 |
CurrencySymbol = Literal["USD", "EUR"]
|
|
|
|
| 111 |
return f"{weather['location']} will be {weather['temperature']} degrees {weather['unit']}"
|
| 112 |
|
| 113 |
def trend_predict(prompt: str) -> str:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
# Set the system prompt
|
| 115 |
system_prompt = {
|
| 116 |
"role": "system",
|