ysharma HF staff commited on
Commit
ceaf395
·
1 Parent(s): 4e54cd8
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,11 +92,11 @@ def text_generate(prompt, generated_txt): #, input_prompt_sql ): #, input_prompt
92
  temp_text = display_output[::-1]
93
  if temp_text[0] == '.':
94
  first_period_loc = temp_text[1:].find('.')
95
- new_prompt = display_output[:-first_period_loc]
96
  print(f"Not sending blank as prompt so new prompt for next cycle is : {new_prompt}")
97
  else:
98
  first_period_loc = temp_text.find('.')
99
- new_prompt = display_output[:-first_period_loc]
100
  print(f"Not sending blank as prompt so new prompt for next cycle is : {new_prompt}")
101
 
102
  return display_output, new_prompt #generated_txt+prompt #final_solution
 
92
  temp_text = display_output[::-1]
93
  if temp_text[0] == '.':
94
  first_period_loc = temp_text[1:].find('.')
95
+ new_prompt = display_output[-first_period_loc:]
96
  print(f"Not sending blank as prompt so new prompt for next cycle is : {new_prompt}")
97
  else:
98
  first_period_loc = temp_text.find('.')
99
+ new_prompt = display_output[-first_period_loc:]
100
  print(f"Not sending blank as prompt so new prompt for next cycle is : {new_prompt}")
101
 
102
  return display_output, new_prompt #generated_txt+prompt #final_solution