Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
API_TOKEN='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'
|
6 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
7 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
8 |
|
9 |
|
10 |
prompt="""
|
@@ -31,7 +31,7 @@ def query(text):
|
|
31 |
payload = {
|
32 |
"inputs": text,
|
33 |
"parameters": {
|
34 |
-
"max_length":
|
35 |
"temperature": 0.9
|
36 |
},
|
37 |
}
|
|
|
4 |
|
5 |
API_TOKEN='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'
|
6 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
7 |
+
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
8 |
|
9 |
|
10 |
prompt="""
|
|
|
31 |
payload = {
|
32 |
"inputs": text,
|
33 |
"parameters": {
|
34 |
+
"max_length": 250,
|
35 |
"temperature": 0.9
|
36 |
},
|
37 |
}
|