Update app.py
Browse files
app.py
CHANGED
|
@@ -61,9 +61,10 @@ def respond(
|
|
| 61 |
APIL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-70B-Instruct"
|
| 62 |
headers = {"Authorization": f"Bearer {hftoken}"}
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
|
|
| 67 |
|
| 68 |
try:
|
| 69 |
payload = {
|
|
|
|
| 61 |
APIL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-70B-Instruct"
|
| 62 |
headers = {"Authorization": f"Bearer {hftoken}"}
|
| 63 |
|
| 64 |
+
|
| 65 |
+
def query(payload):
|
| 66 |
+
response = requests.post(APIL, headers=headers, json=payload)
|
| 67 |
+
return response.text # ์์ ์๋ต ํ
์คํธ ๋ฐํ
|
| 68 |
|
| 69 |
try:
|
| 70 |
payload = {
|