Spaces:
Runtime error
Runtime error
fix: prompt has been updated
Browse files117 unmodified lines11811912012112212312412512612712812913013 unmodified lines144145146147148149117 unmodified linesglobal HISTORYHISTORY = historyglobal PROMPTPROMPT = promptif len(PROMPT)==0:PROMPT = random.choice(["ا","ب","پ","ت","ث","ج","چ","ح","خ","ل","م","ن","و","د","ذ","ر","ز","ژ","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ه","ی",])temperature = float(temperature)if temperature < 1e-2:13 unmodified lines)#seed = seed + 1formatted_prompt = format_prompt(prompt, history, system_prompt)if len(ENDPOINT)>0:stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=False, details=True, return_full_text=False)117 unmodified lines11811912012112212312412512612712812913013113 unmodified lines145146147148149150151152117 unmodified linesglobal HISTORYHISTORY = historyglobal PROMPTif len(PROMPT)==0:prompt = random.choice(["ا","ب","پ","ت","ث","ج","چ","ح","خ","ل","م","ن","و","د","ذ","ر","ز","ژ","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ه","ی",])PROMPT = prompttemperature = float(temperature)if temperature < 1e-2:13 unmodified lines)#seed = seed + 1formatted_prompt = format_prompt(prompt, history, system_prompt)print(f"Formatted Prompt: {formatted_prompt}")if len(ENDPOINT)>0:stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=False, details=True, return_full_text=False)
app.py+5-2