kaborg15 commited on
Commit
ebc0d7d
1 Parent(s): faad248

test interface

Browse files
Files changed (1) hide show
  1. app.py +16 -2
app.py CHANGED
@@ -1,4 +1,18 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ def get_completion(prompt):
4
+ return prompt + " nonce"
5
+
6
+ def main():
7
+ st.title('LLM Text Completion Interface')
8
+
9
+ # Text input
10
+ user_input = st.text_area("Enter your prompt:", height=300)
11
+
12
+ if st.button('Generate'):
13
+ # Get the model's completion
14
+ completion = get_completion(user_input)
15
+ st.text_area("Model Completion:", value=completion, height=300, key="2")
16
+
17
+ if __name__ == '__main__':
18
+ main()