Spaces:
Build error
Build error
Joseph commited on
Commit ·
14f87da
1
Parent(s): fdfdaac
Update gradio_app.py
Browse files48 unmodified lines4950515253545548 unmodified linescounter = 1while counter <= 3:logs += f"Attempt {counter} to generate answer...\n"output = llm(userPrompt, max_tokens=maxTokens, stop=["<|im_end|>"], echo=False)text = output["choices"][0]["text"]if len(text.strip()) > 1 and text.strip() not in ['', None, ' ']:break48 unmodified lines4950515253545548 unmodified linescounter = 1while counter <= 3:logs += f"Attempt {counter} to generate answer...\n"output = llm(userPrompt, max_tokens=maxTokens, stop=["<|im_end|>", "<|end_of_turn|>"], echo=False)text = output["choices"][0]["text"]if len(text.strip()) > 1 and text.strip() not in ['', None, ' ']:break
gradio_app.py+1-1