Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ import requests
|
|
| 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,6 +112,8 @@ def weather_forecast(location: str) -> str:
|
|
| 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",
|
|
|
|
| 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 |
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 |
# Set the system prompt
|
| 118 |
system_prompt = {
|
| 119 |
"role": "system",
|