decodemai commited on
Commit
22fcc8b
·
1 Parent(s): 9dac9d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/EleutherAI/gpt-j-6B"
8
 
9
 
10
  prompt="""
@@ -31,7 +31,7 @@ def query(text):
31
  payload = {
32
  "inputs": text,
33
  "parameters": {
34
- "max_length": 100,
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
  }