Spaces:
Runtime error
Runtime error
Commit
·
a2ab48a
1
Parent(s):
5396e2d
tokens
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ if submitted:
|
|
55 |
gens = command(co, prompt)
|
56 |
recipe = gens[0].text
|
57 |
num_tokens = len(gens[0].token_likelihoods)
|
58 |
-
logger.info(f"Generated recipe with {num_tokens} tokens: {repr(recipe)}")
|
59 |
st.markdown(f"## Recipe for {' '.join(options)} {dish}")
|
60 |
st.write(recipe)
|
61 |
st.markdown("## Delicious! 10/10 with rice")
|
|
|
55 |
gens = command(co, prompt)
|
56 |
recipe = gens[0].text
|
57 |
num_tokens = len(gens[0].token_likelihoods)
|
58 |
+
logger.info(f"Generated recipe with {num_tokens} tokens in {time.time()-start:.1fs}: {repr(recipe)}")
|
59 |
st.markdown(f"## Recipe for {' '.join(options)} {dish}")
|
60 |
st.write(recipe)
|
61 |
st.markdown("## Delicious! 10/10 with rice")
|