Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
|
7 |
def query(payload):
|
@@ -9,11 +10,7 @@ def query(payload):
|
|
9 |
return response.json()
|
10 |
|
11 |
|
12 |
-
|
13 |
-
|
14 |
def greet(name):
|
15 |
-
API_URL = "https://api-inference.huggingface.co/models/Duxiaoman-DI/XuanYuan-70B"
|
16 |
-
headers = {"Authorization": "Bearer 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"}
|
17 |
|
18 |
output = query({
|
19 |
"inputs": "Can you please let us know more details about your ",
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
|
4 |
+
API_URL = "https://api-inference.huggingface.co/models/Duxiaoman-DI/XuanYuan-70B"
|
5 |
+
headers = {"Authorization": "Bearer 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"}
|
6 |
|
7 |
|
8 |
def query(payload):
|
|
|
10 |
return response.json()
|
11 |
|
12 |
|
|
|
|
|
13 |
def greet(name):
|
|
|
|
|
14 |
|
15 |
output = query({
|
16 |
"inputs": "Can you please let us know more details about your ",
|