Spaces:
Sleeping
Sleeping
test interface
Browse files
app.py
CHANGED
@@ -1,4 +1,18 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|