decodemai commited on
Commit
9dac9d4
·
1 Parent(s): 003b419

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -19,6 +19,8 @@ Input:biscuit brand
19
  Output:
20
  In 2050, biscuit brands may have to compete with a variety of alternative, plant-based options as more consumers become conscious of their health and the environment. With advancements in technology, biscuits may be produced with even longer shelf lives and better taste, making them a convenient option for busy consumers on the go. Biscuit packaging may become more eco-friendly, using materials that can be easily recycled or biodegraded to reduce waste. Online shopping and delivery services may become even more popular, making it easier for consumers to purchase biscuits from anywhere, at any time.
21
  #####
 
 
22
  """
23
 
24
 
@@ -38,6 +40,7 @@ def query(text):
38
  print(data)
39
  print(headers)
40
  response = requests.request("POST", API_URL, headers=headers, data=data)
 
41
  return json.loads(response.content.decode("utf-8"))[0]['generated_text']
42
 
43
 
 
19
  Output:
20
  In 2050, biscuit brands may have to compete with a variety of alternative, plant-based options as more consumers become conscious of their health and the environment. With advancements in technology, biscuits may be produced with even longer shelf lives and better taste, making them a convenient option for busy consumers on the go. Biscuit packaging may become more eco-friendly, using materials that can be easily recycled or biodegraded to reduce waste. Online shopping and delivery services may become even more popular, making it easier for consumers to purchase biscuits from anywhere, at any time.
21
  #####
22
+ Input:hair salon
23
+ Output:
24
  """
25
 
26
 
 
40
  print(data)
41
  print(headers)
42
  response = requests.request("POST", API_URL, headers=headers, data=data)
43
+ print('Response here\n',response.content)
44
  return json.loads(response.content.decode("utf-8"))[0]['generated_text']
45
 
46