Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,9 @@ with column2:
|
|
208 |
if index==0:
|
209 |
|
210 |
st.write(prompts_[0].split(send_prompt())[-1].upper() if send_prompt() in prompts_[0] else prompts_[0].upper())
|
211 |
-
data_need=
|
|
|
|
|
212 |
dictionary['every_prompt_with_val'][-1]=(prompts_[0],str(data_need))
|
213 |
|
214 |
elif isinstance(prompts_[-1],str):
|
|
|
208 |
if index==0:
|
209 |
|
210 |
st.write(prompts_[0].split(send_prompt())[-1].upper() if send_prompt() in prompts_[0] else prompts_[0].upper())
|
211 |
+
data_need=""
|
212 |
+
while(len(data_need)==0):
|
213 |
+
data_need=st.write_stream(consume_llm_api(prompts_[0]))
|
214 |
dictionary['every_prompt_with_val'][-1]=(prompts_[0],str(data_need))
|
215 |
|
216 |
elif isinstance(prompts_[-1],str):
|