Staticaliza commited on
Commit
0a57c91
1 Parent(s): 3142184

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -65,6 +65,7 @@ def predict_2(access_key, token, image, instructions, input, seed = 42):
65
  return ("[UNAUTHORIZED ACCESS]", input, []);
66
 
67
  formatted_input = instructions.replace("█", "<end_of_utterance>").replace("░", input).replace(symbol, f"![](https://statical-stc-itt.hf.space/file={image})")
 
68
  model = InferenceClient(model_endpoint, headers = { "Authorization": f"Bearer {token}" })
69
  response = model.text_generation(
70
  formatted_input,
@@ -77,6 +78,7 @@ def predict_2(access_key, token, image, instructions, input, seed = 42):
77
  details = False,
78
  return_full_text = False
79
  )
 
80
  return response.strip()
81
 
82
  def maintain_cloud():
 
65
  return ("[UNAUTHORIZED ACCESS]", input, []);
66
 
67
  formatted_input = instructions.replace("█", "<end_of_utterance>").replace("░", input).replace(symbol, f"![](https://statical-stc-itt.hf.space/file={image})")
68
+ print(formatted_input)
69
  model = InferenceClient(model_endpoint, headers = { "Authorization": f"Bearer {token}" })
70
  response = model.text_generation(
71
  formatted_input,
 
78
  details = False,
79
  return_full_text = False
80
  )
81
+ print(response)
82
  return response.strip()
83
 
84
  def maintain_cloud():