decodemai commited on
Commit
fc0a441
1 Parent(s): 804ed11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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