Spaces:
Runtime error
Runtime error
Staticaliza
commited on
Commit
•
930797e
1
Parent(s):
ad780ff
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def predict(access_key, token, image, instructions, pre_input, input, seed = 42)
|
|
39 |
|
40 |
if not pre_input or len(pre_input.strip()) <= 0:
|
41 |
pre_input = default_pre_text
|
42 |
-
|
43 |
formatted_input = instructions.replace(symbol, pre_input) + pre_input + input + "![](https://statical-stc-itt.hf.space/file=" + image + ")<end_of_utterance>\nAssistant:"
|
44 |
model = InferenceClient(model_endpoint, headers = { "Authorization": f"Bearer {token}" })
|
45 |
response = model.text_generation(
|
|
|
39 |
|
40 |
if not pre_input or len(pre_input.strip()) <= 0:
|
41 |
pre_input = default_pre_text
|
42 |
+
|
43 |
formatted_input = instructions.replace(symbol, pre_input) + pre_input + input + "![](https://statical-stc-itt.hf.space/file=" + image + ")<end_of_utterance>\nAssistant:"
|
44 |
model = InferenceClient(model_endpoint, headers = { "Authorization": f"Bearer {token}" })
|
45 |
response = model.text_generation(
|