Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,10 @@ API_TOKEN='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'
|
|
7 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
8 |
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
9 |
|
|
|
|
|
|
|
|
|
10 |
|
11 |
prompt="""What would this look like in 2050? Give 5 optimally describing bigrams.
|
12 |
Input:cake shop
|
|
|
7 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
8 |
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
9 |
|
10 |
+
from huggingface_hub import InferenceApi
|
11 |
+
API_TOKEN='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'
|
12 |
+
|
13 |
+
inference = InferenceApi("bigscience/bloom",token=API_TOKEN)
|
14 |
|
15 |
prompt="""What would this look like in 2050? Give 5 optimally describing bigrams.
|
16 |
Input:cake shop
|