Spaces:
Build error
Build error
Joseph commited on
Commit ·
2c2e98e
1
Parent(s): 939cad2
Update gradio_app.py
Browse files46 unmodified lines474849505051525346 unmodified lines counter = 1 while counter <= 3: logs += f"Attempt {counter} to generate answer...\n" output = llm(userPrompt, max_tokens=maxTokens, stop=["User:"], echo=False) 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, ' ']: breakgradio_app.py+1-1