Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,12 +38,9 @@ if source == 'I want to input some text':
|
|
38 |
with st.spinner('Processing...'):
|
39 |
time.sleep(2)
|
40 |
st.markdown('___')
|
41 |
-
#response = you.Completion.create(
|
42 |
-
#prompt=f"Explain this code. Lets think Step by step. : {input_su}"
|
43 |
-
#)
|
44 |
prompt=f"Explain this code. Lets think Step by step. : {input_su}"
|
45 |
for token in theb.Completion.create(prompt):
|
46 |
-
|
47 |
st.write('Results!')
|
48 |
st.write(response.text)
|
49 |
stars = st_star_rating("How satisfied are you with the response?", 5, 0, 40)
|
|
|
38 |
with st.spinner('Processing...'):
|
39 |
time.sleep(2)
|
40 |
st.markdown('___')
|
|
|
|
|
|
|
41 |
prompt=f"Explain this code. Lets think Step by step. : {input_su}"
|
42 |
for token in theb.Completion.create(prompt):
|
43 |
+
print(token, end='', flush=True)
|
44 |
st.write('Results!')
|
45 |
st.write(response.text)
|
46 |
stars = st_star_rating("How satisfied are you with the response?", 5, 0, 40)
|