Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import requests
|
2 |
import streamlit as st
|
3 |
import os
|
|
|
4 |
|
5 |
API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud'
|
6 |
API_KEY = os.getenv('API_KEY')
|
@@ -10,8 +11,6 @@ headers = {
|
|
10 |
"Content-Type": "application/json"
|
11 |
}
|
12 |
|
13 |
-
|
14 |
-
from huggingface_hub import InferenceClient
|
15 |
endpoint_url = API_URL
|
16 |
hf_token = API_KEY
|
17 |
client = InferenceClient(endpoint_url, token=hf_token)
|
|
|
1 |
import requests
|
2 |
import streamlit as st
|
3 |
import os
|
4 |
+
from huggingface_hub import InferenceClient
|
5 |
|
6 |
API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud'
|
7 |
API_KEY = os.getenv('API_KEY')
|
|
|
11 |
"Content-Type": "application/json"
|
12 |
}
|
13 |
|
|
|
|
|
14 |
endpoint_url = API_URL
|
15 |
hf_token = API_KEY
|
16 |
client = InferenceClient(endpoint_url, token=hf_token)
|