Spaces:
Build error
Build error
Joseph commited on
Commit ·
2c2e98e
1
Parent(s): 939cad2
Update gradio_app.py
Browse files46 unmodified lines4748495051525346 unmodified linescounter = 1while counter <= 3:logs += f"Attempt {counter} to generate answer...\n"output = llm(userPrompt, max_tokens=maxTokens, stop=["User:"], echo=False)text = output["choices"][0]["text"]if len(text.strip()) > 1 and text.strip() not in ['', None, ' ']:break46 unmodified lines4748495051525346 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, ' ']:break
gradio_app.py+1-1