Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,8 @@ def plot_word_scores(top_token_ids, outputs, tokenizer, boolq=False, width=600):
|
|
38 |
|
39 |
st.title('How do LLM choose their words?')
|
40 |
|
|
|
|
|
41 |
col1, col2 = st.columns(2)
|
42 |
|
43 |
with col1:
|
@@ -62,8 +64,6 @@ model = T5ForConditionalGeneration.from_pretrained(
|
|
62 |
device_map="auto"
|
63 |
)
|
64 |
|
65 |
-
instruction = st.text_area('Write an instruction:', 'Where is Venice located?')
|
66 |
-
|
67 |
|
68 |
prompts = [
|
69 |
f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
|
|
38 |
|
39 |
st.title('How do LLM choose their words?')
|
40 |
|
41 |
+
instruction = st.text_area(label='Write an instruction:', placeholder='Where is Venice located?')
|
42 |
+
|
43 |
col1, col2 = st.columns(2)
|
44 |
|
45 |
with col1:
|
|
|
64 |
device_map="auto"
|
65 |
)
|
66 |
|
|
|
|
|
67 |
|
68 |
prompts = [
|
69 |
f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
|