Spaces:
Running
on
Zero
Running
on
Zero
Update app_dialogue.py
Browse files- app_dialogue.py +5 -2
app_dialogue.py
CHANGED
@@ -276,13 +276,16 @@ def model_inference(
|
|
276 |
repetition_penalty,
|
277 |
top_p,
|
278 |
):
|
279 |
-
print('user _prmt=', user_prompt)
|
280 |
-
print('chathostoy= ', chat_history)
|
281 |
# if user_prompt["text"].strip() == "" and not user_prompt["files"]:
|
282 |
# gr.Error("Please input a query and optionally image(s).")
|
283 |
|
284 |
# if user_prompt["text"].strip() == "" and user_prompt["files"]:
|
285 |
# gr.Error("Please input a text query along the image(s).")
|
|
|
|
|
|
|
286 |
|
287 |
streamer = TextIteratorStreamer(
|
288 |
PROCESSOR.tokenizer,
|
|
|
276 |
repetition_penalty,
|
277 |
top_p,
|
278 |
):
|
279 |
+
# print('user _prmt=', user_prompt)
|
280 |
+
# print('chathostoy= ', chat_history)
|
281 |
# if user_prompt["text"].strip() == "" and not user_prompt["files"]:
|
282 |
# gr.Error("Please input a query and optionally image(s).")
|
283 |
|
284 |
# if user_prompt["text"].strip() == "" and user_prompt["files"]:
|
285 |
# gr.Error("Please input a text query along the image(s).")
|
286 |
+
user_prompt= {'text': "What's in the image?", 'files':[]}
|
287 |
+
chat_history=[]
|
288 |
+
|
289 |
|
290 |
streamer = TextIteratorStreamer(
|
291 |
PROCESSOR.tokenizer,
|