Muh113 commited on
Commit
13884b4
Β·
verified Β·
1 Parent(s): 37f1f30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -2
app.py CHANGED
@@ -13,10 +13,36 @@ tokenizer = AutoTokenizer.from_pretrained(model_repo_path)
13
  model = AutoModelForSeq2SeqLM.from_pretrained(model_repo_path).to(device)
14
 
15
  # Streamlit app layout
16
- st.title("Minecraft Query Wizard")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  # User input
19
- question_input = st.text_area("Enter a Minecraft-related question", height=150)
20
 
21
  # Answer the question
22
  if st.button("Get Answer"):
@@ -35,3 +61,8 @@ if st.button("Get Answer"):
35
  st.error(f"Error during question answering: {e}")
36
  else:
37
  st.warning("Please enter a question to get an answer.")
 
 
 
 
 
 
13
  model = AutoModelForSeq2SeqLM.from_pretrained(model_repo_path).to(device)
14
 
15
  # Streamlit app layout
16
+ st.set_page_config(page_title="Minecraft Query Wizard", page_icon="πŸ§™β€β™‚οΈ")
17
+
18
+ st.title("Minecraft Query Wizard πŸ§™β€β™‚οΈ")
19
+
20
+ st.markdown("""
21
+ <style>
22
+ .main {
23
+ background-color: #f5f5f5;
24
+ font-family: Arial, sans-serif;
25
+ }
26
+ .stButton>button {
27
+ background-color: #4CAF50;
28
+ color: white;
29
+ font-size: 18px;
30
+ padding: 10px 20px;
31
+ border-radius: 8px;
32
+ }
33
+ </style>
34
+ """, unsafe_allow_html=True)
35
+
36
+ st.markdown("### Welcome to the Minecraft Query Wizard! 🌟")
37
+ st.markdown("This tool allows you to ask any Minecraft-related questions and get accurate answers using the latest AI technology.")
38
+
39
+ st.markdown("#### How to use:")
40
+ st.markdown("1. Enter your Minecraft-related question in the text area below.")
41
+ st.markdown("2. Click the 'Get Answer' button to generate a response.")
42
+ st.markdown("3. See the magic happen! ✨")
43
 
44
  # User input
45
+ question_input = st.text_area("Enter your Minecraft-related question here:", height=150)
46
 
47
  # Answer the question
48
  if st.button("Get Answer"):
 
61
  st.error(f"Error during question answering: {e}")
62
  else:
63
  st.warning("Please enter a question to get an answer.")
64
+
65
+ st.markdown("---")
66
+ st.markdown("### About the Creators")
67
+ st.markdown("**Creator 1:** Name of Creator 1")
68
+ st.markdown("**Creator 2:** Name of Creator 2")